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)

29
votes
7answers
62k views

What is the best Apache logs Analyzer? [closed]

What real-time log analyzer can you suggest for Apache access and error logs? There is a list of web analytics software on wikipedia, but it would be great to hear opinions from people with ...
14
votes
3answers
1k views

What are some great resources for mastering Apache administration?

I've been working with Apache for a couple years now and am comfortable with basic administration and configuration. However, I'd really like to increase my skill set from basic administration to ...
12
votes
5answers
508 views

Is it worth looking into a webserver other than apache?

I've traditionally deployed my sites under apache, simply by default. I've heard things about NGinX though and I'm wondering under which conditions it would be superior. In addition to apache and ...
10
votes
4answers
272 views

Cheap server stress testing

The IT department of the nonprofit organization I work for recently got a new virtual server running CentOS (with Apache and PHP 5), which is supposed to host our website. During the process of ...
9
votes
1answer
411 views

Why chmod 777 is not secure?

chmod 777 file change the permissions of the file file to read, write, and execute for all. Ok, so the file can be manipulated in any way by any script on the server. But why is this not ...
9
votes
3answers
142 views

How do I ensure that my content is sent via gzip in Apache?

Is there some setting that I can search for in Apache configurations to make sure that all pages, CSS, and JavaScript are sent via gzip? Are they located in different places for different Operating ...
8
votes
2answers
24k views

Can I skip the PEM pass phrase question when I restart the webserver?

After buying a multi-domain SSL certificate I have started testing it with the Nginx webserver (following documentation in their SSL wiki page). Everything is fine, it works and I get a green ...
8
votes
4answers
202 views

Can missing anchors be logged?

If I have a broken link it gets logged with a 404. If I have a link to an anchor and the anchor is missing, I don't get an entry in the log. How can I find those broken anchor links, especially if the ...
8
votes
3answers
590 views

Tactics for dealing with misbehaving robots

I have a site that, for regulatory reasons, may not be indexed or searched automatically. This means that we need to keep all robots away and prevent them from spidering the site. Obviously we've had ...
8
votes
3answers
3k views

Forcing SSL and www in .htaccess

I'm looking for a way to force SSL and www. I've been able to force both separately but together I keep running into redirection issues. The following code works when handling a URL in this format: ...
7
votes
1answer
10k views

How can I redirect port 80 to a different port with Apache?

I have tomcat running on port 8080 and want a particular URL, lets say http://example.com/app, to actually point to example.com:8080/app I have other content on the website that should remain ...
7
votes
2answers
3k views

Why does my site only work with a www in the URL?

I'm a bit confused as the following points: There is a simple text website, with no javascript, that works only with the prefix. http://www.mysite.corporation.com works but ...
7
votes
2answers
302 views

Is there any way to diagnose which PHP or Perl scripts consume the most CPU time on a production server?

On a slightly under-powered server, it occasionally gets hit by lots of robots crawling simultaneously. Whilst one solution is to look into throwing more processing power at the web server, it has ...
7
votes
4answers
239 views

Is there an SVN UI for hosting server?

We are considering upgrading to either a dedicated or cloud server. What I would really like is for the hosting account to have SVN installed on it. With a UI that I can use. So when I make a change, ...
7
votes
5answers
168 views

Access site not working for the owner

I made a website, and it works for everyone except for the site owner, who cannot access the site. He gets a "server could not be found" error. I went to his house and the issue occurs for all of his ...
7
votes
1answer
293 views

403 error on index file

When I try to access index.py in my server root through http://domain/, I get a 403 Forbidden error, but when I can access it through http://domain/index.py. In my server logs it says "Options ExecCGI ...
7
votes
2answers
443 views

Apache - How to NOT log 301 redirects

I recently re-designed my site and a lot of the URLs changed. I have already setup rewrite rules in Apache to redirect old URLs to the new URLs. That's all working. My question is, how can I get ...
7
votes
1answer
270 views

Apache rewrite rules for development workstation and server

I've got developers editing pages for several sites on a WAMP stack and then uploading to the public servers running LAMP stacks. We're pretty happy with it, but we have this minor annoyance: we can't ...
7
votes
2answers
168 views

Separating static/uploaded content from the site

I have a site where I anticipate to have a large amount of users. I've heard that it is a good idea to separate user content (uploaded images) and place them on a separate static server where lighttpd ...
7
votes
1answer
363 views

Problem with .htaccess and mod_rewrite after moving site to new server

The site seems to draw the correct links but its not redirecting me to the correct view. The same code works fine on the old server here http://ruse.systemio.net/q&a/. The new server is here ...
7
votes
1answer
700 views

Permissions for serving up temporary files

I have a system (web based application) which pulls file attachments from a 3rd party system via SOAP. These are in turn on our system created as files in a directory. When a user of the system ...
7
votes
5answers
293 views

Tracking down memory issues affecting a website

I've got a website (Wordpress based) that became unresponsive. I SSH'd into the server and saw that we were out of memory. Errors in my apache log files indicated the same... things failing to be ...
7
votes
3answers
1k views

Does using LiteSpeed instead of Apache speed up WordPress?

I've read that Litespeed is a lot faster than Apache. I use mostly WordPress and Joomla sites and am looking for a new server. Will I see a significant increase in speed of WordPress being on a ...
6
votes
2answers
860 views

How do I temporarily disable a website?

I have to take a website down for a month, which is the least intrusive way to keep achieved SEO optimizations? should I just add in apache config: <Directory ...
6
votes
3answers
3k views

Where do I create the file .htaccess, in order to serve my HTML5 cache manifest file correctly?

From a post on http://diveintohtml5.org/offline.html (Wayback Machine Copy) Your cache manifest file can be located anywhere on your web server, but it must be served with the content type ...
6
votes
3answers
3k views

How to restart Apache without reseting users sessions?

User is logged-in a PHP website > I restart Apache > User needs to log-in again. How to prevent this? (I don't want user to need to log-in again)
6
votes
3answers
165 views

Use Apache to prevent a PHP script from connecting to a specific domain

Is there a way to prevent apache from connecting to a specific domain e.g. somesite.com? I have a PHP script that trying to connect to specific host, and I would like to prevent that.
6
votes
2answers
2k views

Apache: How can I force the browser to reload CSS files?

How to force the user's web browser to reload CSS files with Apache Server? I updated my website's CSS file but some users are still seeing problems that would be resolved if their browsers fetched ...
6
votes
3answers
4k views

What are the pros and cons of running PHP as an Apache module or a FastCGI?

My VPS is giving me the option between running PHP as an Apache Module or a FastCGI. How should one make this decision? Performance? Security? Ease of use? Compatibility? I'm using PLESK.
6
votes
1answer
2k views

.htaccess rule to redirect from 404 to search results

When a user (or a bot) request on non existing page, I want to redirect him to the search results. I prefere to do it with the .htaccess file using something like: ErrorDocument 404 ...
6
votes
1answer
447 views

Best practices for streaming videos to a large concurrent user base?

What are the best ways to stream videos for a user base of more than 1000 users? What among the below would be the best way to use? An html tag to embed the video in the source element. To use a ...
5
votes
4answers
135 views

WebHosting solutions allowing self-made Apache modules [duplicate]

Possible Duplicate: How to find web hosting that meets my requirements? I am searching for a web hosting solution that would allow me to use my own Apache modules written in C. Have you ...
5
votes
2answers
634 views

How can I disallow access to my website by its IP address?

I want my website to be accessible only by the domain name, not by the server’s IP address. How can I configure Apache to achieve this? Below are the VirtualHost configurations of Apache. ...
5
votes
1answer
10k views

How to pass GET parameters to rewritten URL?

I have an .htaccess rewrite rule like this: RewriteCond %{SCRIPT_FILENME} !-d RewriteCond %{SCRIPT_FILENAME} !-f RewriteRule ^search/(.*)$ search.php?q=$1 What this does is, if someone visits ...
5
votes
1answer
2k views

Why has Apache begun running a single process as root, and another as root and the wwwdata user?

I am running Apache Worker-MPM, PHP 5.3.2, and FCGID. Apache runs better than before, but I noticed that there is an apache process running as root and a second process that runs as both root and ...
5
votes
5answers
14k views

“File does not exist” in apache error log

This is an example of an error in out log file: File does not exist: /var/www/website/female, referer: http://www.website.com/female/dresses/A-Dress-Black "/female" doesn't exist, because we use ...
5
votes
3answers
18k views

How to remove trailing slashes from URL with .htaccess?

The situation Across the entire domain, we'd like the URLs to hide file extensions and remove trailing slashes, independent of the domain name itself (as in, works on any domain). Sample of our ...
5
votes
2answers
187 views

Can a 403 error ever be client side?

I've got a well-established web application. It's working for lots of people with a variety of browsers and platforms. But, there's this one guy... He's getting a "403 Forbidden" on his side, I've ...
5
votes
1answer
878 views

How to internally rewrite a page when requested from specific HTTP_HOST

I have a Drupal site, site.com, and our client has a campaign that they're promoting for which they've bought a new domain name, campaign.com. I'd like it so that a request for campaign.com internally ...
5
votes
2answers
10k views

How can I diagnose an Internal Server Error?

I was trying to host a zend-framework project on new host provider. After uploading everything and configuring the database connection I have encountered Internal Server Error message. My service ...
5
votes
1answer
6k views

How to install mod_ssl for Apache

I have installed Apache httpd a while ago and have recently come back to it to try setup SSL and get it serving several different tomcat servers. At the moment I have two completely separate tomcat ...
5
votes
1answer
232 views

How to get rid of crawling errors due to the URL Encoded Slashes (%2F) problem in Apache

The Google web crawler has indexed a whole set of URLs with encoded slashes (%2F) for our site. I assume it has picked up the pages from our XML sitemap file. The problem is that the live pages will ...
5
votes
2answers
10k views

Redirect Permanent and https

I just set up HTTPS on my server, and I have an issue with redirect permanent. Example http://domain.com/index.html it redirect me to http://www.domain.comindex.html The / (tail ending slash) is ...
5
votes
1answer
371 views

How should incorrectly encoded URLs be handled?

Just recently noticed that some sites link with the URL incorrectly percent-encoded, to which my server (LAMP) responds with a 404 Not Found. For example, for a URL of mine like this: ...
4
votes
6answers
890 views

Is it dangerous to keep Thumbs.db on a web server?

Windows Thumbs.db system files that are in most of folders were uploaded with all other files from the localhost to the server. Is it dangerous, if you forget to delete them on the server? I am on ...
4
votes
5answers
839 views

Site compromised .htaccess files everywhere

Some of the sites we're hosting are compromised by... I don't know what. Every directory on the webserver contains a .htaccess file which redirects a user coming from a search engine to a page which ...
4
votes
1answer
80 views

How can I serve all resources under HTTPS instead of HTTP without changing their URLs in the HTML code

I know that by using an .htaccess file I can redirect everyone to https://. However, my SSL certificate complains if all the content isn't served under HTTPS. Is there a way to convert all the ...
4
votes
2answers
3k views

How to add multiple websites on a single IP address?

I have a VDS server and a dedicated IP address. The question is how to add multiple sites in a single domain? For example I have 3 sites as below: www.company.co www.webdesign.com www.inet.com ...
4
votes
5answers
857 views

Tool for clickstream anlyzing of Apache logs?

Are there any good tools to analyze the clickstream of individual users in Apache web server logs? For example, I'd like to be able to click on a visitors IP address and see all pages the user ...
4
votes
3answers
127 views

How can I determine the trending pages on my site?

I'm looking to see what the "hot" pages are on one of my sites. I want to see for various timeframes, what the top-50 pages are. I'm only concerned with the current month's data. I'm going to create ...