The Apache HTTP Server is an Open Source Web server, which originated from a series of patches to the NCSA HTTPd. Apache is the world's most popular Web server, which is run on 54.90% of all Web servers according to the Netcraft survey conducted July 2010.

learn more… | top users | synonyms (1)

2
votes
1answer
340 views

Apache htaccess results in files being downloaded instead of displayed

So I had this "beautiful" website that did exactly what I wanted it to do. Then I shut down my PC, reboot and...the pages just download now instead of being displayed. I re-installed XAMPP and ...
1
vote
1answer
41 views

Configure htaccess to show index.php as the default page instead of permissions error

Having a problem with my .htaccess. I have this to secure all my documents: Order Deny,Allow Deny from all Allow from 127.0.0.1 <FilesMatch "\.(htm|html|css|js|php)$"> Order Allow,Deny ...
2
votes
1answer
512 views

Apache VERY high page load time

My Drupal 6 site has been running smoothly for years but recently has experienced intermittent periods of extreme slowness (10-60 sec page loads). Several hours of slowness followed by hours of normal ...
1
vote
1answer
80 views

Serve most of a domain with Apache, but use mod_proxy to serve some URLs from Lighttpd

So we wish to host some pages on a new server with apache2, and embed some of our old content & functionality from another server with lighttpd in an iframe. I'm looking at this configuration from ...
0
votes
1answer
81 views

Perl script rendered in browser as code through symlink - fine when accessed directly

I have a Rails 4 app that has some views that post to Perl cgi scripts. The perl scripts are accessed via a symbolic link to a folder called "cgi-bin". When I navigate to a perl script through the ...
1
vote
1answer
168 views

How to configure mod_bwlimited through htaccess

The mod_bwlimited module in htaccess apparently displays an error if bandwidth is exceeded. Anyone know what options are available for configuring it through htaccess?
2
votes
2answers
518 views

How to enable compression in WAMP installed on Windows Server?

How to enable compression in WAMP running on Windows Server 2008? I searched the net and I followed these steps given here: http://www.zigpress.com/2009/04/09/enabling-gzip-on-wamp/. But after ...
0
votes
1answer
88 views

Getting really weird entries in Apache log from Baidu.com?

I was looking through my server logs today, and I noticed this: (it's all one row) 118.244.179.250 - - [16/Oct/2013:20:59:25 +0000] "GET ...
2
votes
3answers
82 views

Different authentication for HTTP POST and GET requests in Apache

I want to authenticate for POST requests for http://path/to/logical/abc.xml (but not GET requests to that URL). How do I put constraints like this in place? The paths are logical and location ...
0
votes
2answers
47 views

Move site from one tld to another

If we want to move site from say xyz.com to xyz.org. What all things we need to do to make sure seo works fine. I am doing something like: Point both xyz.com and xyz.org to same IP where my site is ...
2
votes
1answer
149 views

Restricting post method and authentication to specifc URL paths in Apache .htaccess

I shall start with an example. I want to restrict to POST requests only for http://path/to/logical/abc.xml and restrict to GET only for http://path/to/logical/def.xml. How do I put constraints like ...
3
votes
1answer
706 views

Cannot load local resource

In spring project, I am generating some pdf file automatically in my application and storing it in $CATALINA_BASE in tomcat server. The path is : ...
0
votes
1answer
163 views

Password protecting dynamic URLs in Apache

I am handling many logical files request using the Apache server. To make the path simple I have used mod_rewrite in the httpd.conf. Now I am planning to enforce authentication on these logical file ...
1
vote
1answer
93 views

How to set up a single IP blocklist for multiple sites hosted on the same account

When running multiple sites on the same hosting account, one might find that an attacker has attempted to breach one site. A webmaster may want to block the IP address from all sites hosted in the ...
1
vote
1answer
144 views

Write to an alias directory on Apache

How do I enable writing via PHP to an alias directory. I have the following on my VirtualHost: <VirtualHost *:80> ServerName domain.com ServerAlias m.domain.com ...etc AliasMatch ...
1
vote
0answers
136 views

Require domain alias to show in browser address bar

Similar to question posted here (but not related to sub directories): .htaccess redirect of domain name alias to main domain but must show up as the alias domain I am trying to direct traffic from an ...
1
vote
1answer
22 views

Changing DNS of website to point to another website

I have two website abc.com and newabc.com. Both are on different web servers. I want to shut down abc.com and make sure that I want to send its requests to newabc.com. I am shutting down the servers ...
1
vote
0answers
53 views

How to customize apache mod_sec log output?

I have an apache server which uses mod_security configuration. Those logs are further analyzed and sent out to OSSEC server for intrusion detection and monitoring. That OSSEC server then sends those ...
4
votes
2answers
142 views

Ditch cPanel / WHM in favour of manual seup

We currently use cPanel / WHM on a reseller account but are looking at getting a dedicated server. My first thought was to duplicate this set up on the dedicated box to allow us to quickly create new ...
0
votes
2answers
232 views

301 redirect all pages with a specific extension

I have a website that is not on ASP anymore, it's a Drupal 7 website now. I need to use an .htaccess file to redirect with code 301 all pages with .asp extension to the 404 page or a specific URL. ...
1
vote
1answer
433 views

How do I make Apache stop logging “ ModSecurity: Access denied”?

I have Apache set up on a Linux server and have mod_security enabled. I have a few lines that look like: SecRule REQUEST_URI "^/*admin" drop,phase:1 Because there is no /admin on my website, and I ...
0
votes
1answer
177 views

htaccess redirect pages that don't exist

I have a website that has a little over 100 members. Each member gets a replicated website, and by default the software we use sets up their replicated website at a url like: domain.com/?username ...
0
votes
1answer
43 views

What are best SEO practices when deleting a webpage? What return code should I use? [duplicate]

On a live site, let's say there is a page that is really outdated with old information. Is it ok to just delete it? Or do I have to setup an Apache redirect or do a 404 or something special for the ...
1
vote
1answer
151 views

Is there any way to debug redirection rules in.htaccess?

I have an .htaccess file with over 200 redirection rules. It seems some of them are conflicting each other. Is there any way to find out which one is responsible of redirect on a particular request? ...
1
vote
1answer
1k views

.htaccess redirect of domain name alias to main domain but must show up as the alias domain

I have the following in a .htaccess file: RewriteCond %{HTTP_HOST} ^www\.aliasdomain\.com$ [OR] RewriteCond %{HTTP_HOST} ^aliasdomain\.com$ RewriteRule ^(.*)$ ...
1
vote
2answers
146 views

Serving proper 404/410 error codes on dynamic database driven site

a developer I'm working with is having a difficult time serving 404 errors on dynamically generated pages (they get created when the request is made by querying the database to see if the content ...
4
votes
2answers
152 views

Website hack resulting in auto redirect - where to start looking?

My website is being redirected to a non-existent page (/showpage.php) for some users when they hit the homepage. For other users, the site works fine. I have looked in the index.php files and some ...
0
votes
0answers
12 views

Shorten the URL in apache2.conf [duplicate]

I've just started using apache and I'm trying to change the urls from www.test.com/dashboard.php/page1 to www.test.com/page1 in appache's config file. This has to be done for all URLs so I'm doing it ...
0
votes
2answers
247 views

Installing Google Sitemap Generator on Linux

I have a website with httpd (front end) and Apache tomcat (back end). I'm trying to install Google Sitemap Generator and create sitemap for the website. I followed the following link for ...
3
votes
2answers
207 views

Can I configure Apache's HTTP Authentication (.htpasswd) to require the name/password of a local user account?

I'd like to restrict access to a certain directory in my webroot to all users that belong to a specific group. I know that I can create a .htpasswd file that specifies a user, or even several users, ...
2
votes
1answer
61 views

Sendmail encrypted

I manage a website running on Apache. It has public and private areas. When people apply for an account to access the protected portions of the site, they do a TLS/SSL protected POST containing their ...
0
votes
0answers
94 views

Internet Explorer 8, content negotiation and missing file extension

I'm using Apache to serve a webpage that contain some images. I have imags in both SVG and PNG format, and use content negotiation to serve the format that a client understands. As a result, the files ...
1
vote
0answers
163 views

Is my .htaccess rule creating an infinite loop?

Whenever I type a made up address that includes a directory index it removes it. The problem is when the the address includes a forbidden subdirectory. It reduces itself until it hits forbidden. How ...
1
vote
1answer
193 views

Apache returns 304, I want it to ignore anything from client and send the page

I am using Apache HTTPD 2.2 on Windows. mod_expires is commented out. Most other stuff are not changed from the defaults. gzip is on. I made some changes to my .js files. My client gets one 304 ...
1
vote
1answer
51 views

CMS fails at finishing setup with PHP-FPM and Apache, but why?

I have installed Apache and PHP-FPM by following this tutorial. Unfortunately when I try to set up Drupal or PHP-Fusion it simply fails at the end of the setup. I mean it accepts everything and at ...
0
votes
0answers
125 views

redirecting in node.js behind mod_rewrite proxy

I have a node.js application running behind an Apache mod_rewrite proxy configured in a .htaccess file like this: RewriteCond %{HTTP_HOST} =mydomain.com [OR] RewriteCond %{HTTP_HOST} ...
0
votes
1answer
975 views

Apache virtual host does not work properly

I have read a lot of information all over the Internet regarding this subject, and can not figure out what I'am doing wrong. I'm trying to host two websites under different names locally under Windows ...
2
votes
1answer
90 views

Go up one directory in mod_rewrite

I've got a standard Zend Framework 1 project that looks a bit like this: Project |- public |- .htaccess |- index.php The .htaccess looks like this: RewriteEngine On RewriteBase / RewriteRule ...
1
vote
3answers
357 views

URL without trailing slash makes Apache look in non-SSL DocumentRoot

I have configured a virtual host in Apache for serving content over SSL/TLS. Since I also want to allow other sites on my domain to use regular http, I have two document roots, one at /home/www/html ...
0
votes
1answer
106 views

Apache 2.4.2 on Windows reveals hidden files in web browser

Even though I have code to block access to hidden files in httpd.conf, the contents of a file such as .htaccess is visible in web browsers. The same effect is present when running the server on ...
2
votes
3answers
115 views

Fastest way to redirect dead URLs to home page

A client of mine scrapped his entire wordpress site of many years for a custom CMS. The URL structures both use the /<post_title> format, so a pattern based .htaccess rule is out of the picture ...
1
vote
1answer
154 views

Getting the masked URL values in Mediawiki

I have successfully masked the URL in Mediawiki. By using the following scripts in .htaccess and localsettings.php files in Mediawiki, i.e.: .htaccess: Options +FollowSymLinks RewriteEngine on ...
2
votes
1answer
305 views

Apache - directory browsing gives 404

With no .htaccess files and Options FollowSymLinks MultiViews Indexes followed by AllowOverride None in the vhost configuration, I'm getting 404 responses from directory listings. Are there some ...
1
vote
4answers
490 views

Setting up a LAMP VM server for Development and Testing?

Info: I would like to set up a VM server on my local computer which will serve pages in the exact same way as my current hosting (but only to me on my local computer). I currently pay a big web ...
1
vote
1answer
238 views

apache2 subdirectory access

I am setting up an apache server on my linux (debian) machine. I am making a website, with sub directories that contains my css and image file. Here is my config. <Directory /var/www/*> ...
0
votes
1answer
103 views

REST webservice full implementation: server + client

I've spent a week reading about RESTful webservice and searching for a fully example to build my project above. When I reach a fully understanding of the REST webservice, I couldn't find any full ...
2
votes
1answer
72 views

Configuring an Apache server to run Python

I currently have a website set up on an Apache server running on Redhat Linux, and am trying to configure it to be able to run Python scripts. Essentially, I want to allow Python to be executable, so ...
1
vote
1answer
493 views

Extensive GET /wpad.dat HTTP/1.1 requests

We are having extensive (thousands per minute) GET /wpad.dat HTTP/1.1 requests at our Linux server, causing traffic problems and slowing down access to the websites we host. What does it stand for ...
0
votes
0answers
20 views

Redirect of www vs. “all works” [duplicate]

I was asked a question from a friend if he should redirect his-domain.com to www.his-domain.com. I answered him that it seems more intuitive to just make both work. So if you enter by his-domain.com ...
2
votes
1answer
217 views

Managing Xampp on USB for Mac and Windows machines

I am working on some PHP projects (Wordpress mostly) with MySQL databases and primarily use my Windows Desktop to do the work on whilst running Xampp. This all works great until I need to take my ...