Questions tagged [apache-2.2]

Version 2.2 of the Apache HTTP Server.

When asking questions about virtualhosts, please include the output of the following command: "apache2ctl -S" (or "httpd -S" depending on your OS)

OFF-TOPIC WARNING: Apache version 2.2 reached end-of-life with the final release of version 2.2.34 in July 2017. No further evaluation of security risks will be published for 2.2.x releases, and Apache users should immediately transition to version 2.4.x. Because Apache 2.2 is unsupported, most, if not all, questions regarding Apache 2.2 will be off-topic on ServerFault.

The Apache HTTP Server is a popular Open Source Web server.

This tag should be used for questions specific to version 2.2 of Apache HTTPD. For more general Apache HTTP Server related questions, you should use the Apache2 tag instead.

Apache is very well documented and most functionality is described in detail within this documentation. Specific documentation is available for Version 2.2

If you are asking a question on Server Fault about Virtual Hosts, can you please include the output of either:

# Debian Linux and its derivates
apache2ctl -S
# Most other UNIX/Linux distributions
apachectl -S
# Non UNIX/Linux distributions or if you are unable to find apachectl
httpd -S 

Including this will involve in a much faster answer to your question, as no doubt the first thing people will ask for is that output.


For questions about Apache 2.4 please use

17291 questions
4
votes
5 answers

Apache mod_rewrite remove question mark (?) and query-string substitution

I registered a RewriteRule with mod_rewrite, but the substituted URL are wrong. The rule are: RewriteRule ^/img/z(0|1)u(.+)\.(gif|jpg|jpeg|png)$ /image-servlet/img/?z=$1&url=$2 [NE,QSA,PT,T=image/$3] When I access the following URL:…
4
votes
1 answer

Nginx/Apache subdomain problem

I'm having some trouble setting up a subdomain for clients.lipsmack.co.uk. I've set up a DNS A record to point to my IP address, and I've created proxy and vhost information for nginx and apache, but I'm getting a server not found response when I go…
4
votes
4 answers

mod_proxy change without restart

How can I setup an apache mod-proxy server to server content from a seperate designated server, in a way that I can change which server to serve content from without restarting apache? The content server will change periodically, either for…
Fire Crow
  • 245
4
votes
3 answers

Wordpress wp-admin redirect loop behind IIS ARR Reverse Proxy

I've got a bit of a unique and interesting setup going on from what I can tell, with an interesting issue. I have a Windows Server 2012 box as my main web server hosting website.com. At http://website.com/sites/ I have a reverse proxy setup with ARR…
Chiggins
  • 821
4
votes
1 answer

Is there any filter available for Apache Server Status page?

I enabled the Apache Status page by mod_status module. The process list is very long, and most of them are OPTIONS * HTTP/1.0 , which I want to filter away. Is there any tweak, option or flag to hide those OPTIONS processes?
Raptor
  • 1,055
4
votes
3 answers

How can I make Apache look in 2 separate directories with one common url ? follow-up question

This is a follow-up question to my previous question on this site. Maybe I should point out that the Apache server is running on a windows system, don't know if it matters. My problem is following: I have 2 drives J: and K:, both have a directory…
Alex F
  • 51
4
votes
1 answer

Why does my apache refuse the "Content-Security-Policy" headers?

I'm currently in the process of implementing Content-Security-Policies. But my apache refused to accept the config settings. The apache2 versions I am currently using are: 2.2.22 and 2.4.7. Neither of those apache2 versions seem to work. My config…
Riemu
  • 123
4
votes
3 answers

206 Partial Content returned with Content-Length: 0

I'm serving large audio files on an Apache server using mod_xsendfile (version >= 0.10 ). The files are served fine when I use header( 'HTTP/1.1 200 OK' ); However, those files are served in full. Because I want to allow visitors to seek in the…
4
votes
3 answers

Why is Apache ignoring the "Options Indexes" directive?

I have the following block in my .conf file but when I load the appropriate URL (which points to a directory with just a dummy .txt file in it) I get the Apache 2 Test Page instead of a directory listing. <Directory…
4
votes
4 answers

Apache2 server requesting ITSELF on random HTTP activity

I'm at the end of my rope and could really use some fresh insight/suggestions. The problem: While runing Apache 2.2.3 on Debian Etch, my Apache server frequently sends a request to ITSELF (to the LAST virtual host in the config file) on random…
Jeff
  • 1,466
4
votes
1 answer

Configure Apache to redirect 404 errors to a location based on the requested path

Right now I have the following in my httpd.conf file: ErrorDocument 404 /index.html This works but I need an additional rule that will handle my debug path as well. For example, if I request http://www.mypage.com/debug/page-that-does-not-exist.html…
FoxMulder900
  • 143
  • 1
  • 5
4
votes
3 answers

Can I detect when a client has disconnected from a CGI?

I have a rather resource intensive CGI that takes quite a long time to start sending data. We've seen quite a few cases where impatient people reload a couple of times, which then triggers additional runs of the CGI to be loaded, or cases where the…
Joe H.
  • 1,947
4
votes
1 answer

Understanding CPU% on Apache Extended Server Status

I just migrated an existing fairly high traffic website to a Digital Ocean droplet and I viewed the Apache extended server status page. It shows the information below. One thing I noticed is that the CPU is listed at 269% load. How can that be? Is…
4
votes
2 answers

How to remove request blocking on apache reverse proxy after failure of backend before asking backend again?

I am working on an apache2 reverse proxy vhost. When the server behind apache is down, the first request to apache shows the error page of course. But at subsequent requests it seems apache delays for some time before asking the backend server…
user12096
  • 937
4
votes
1 answer

Completely getting rid of SSLv3 on Apache

Our security team is asking that we completely disable SSLv3 on some of our servers running Apache. I've used the SSLProtocol entry in the ssl.conf file (like SSLProtocol ALL -SSLv2 -SSLv3) and various SSLCipherSuite entries to try to disable this…
Stefan
1 2 3
…
99
100