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

17280 questions
5
votes
1 answer

Apache mod_auth_kerb asking 2 authentication

I've configured Apache to use mod_auth_kerberos. So far everything is working nicely for client thats connected to Active Directory and have their browser to NTLM enabled. When clients are not in the domain or the browser configured not to…
Rianto Wahyudi
  • 493
  • 3
  • 11
4
votes
1 answer

IPv6 validity test failed. What does this mean?

When I use https://ipv6-test.com/validate.php to test my website for IPv6 ready, (example on a domain www.[private].com), the test is failed and it returns error: IPv6 web server web server is unreachable : Connection refused The other test…
MaXi32
  • 367
  • 2
  • 11
4
votes
3 answers

Apache redirect based on hostname

I have multiple hostnames resolving to a single machine, e.g.: build.mydomain.com www.mydomain.com jira.mydomain.com mydomain.com Is it possible to setup apache in order to redirect requests to each different hostname? e.g: build.mydomain.com ->…
user30665
4
votes
1 answer

apache and ajp performance

I have an apache sitting in front of two tomcat app servers(one on the same physical server, the other on a different one) that does time consuming work(0.5 sec to 10sec per request). The apache http server is getting killed by an average of 1 to 2…
user12145
  • 1,115
  • 6
  • 28
  • 47
4
votes
2 answers

How do I host 2 different website names at the same IP address?

I'd like to host two websites with different domain names, on a single server, with a single IP address. I have a fixed IP address with my service provider. It points to my router which port forwards everything on port 80 to a mac mini server on my…
Thomas Browne
  • 93
  • 1
  • 2
  • 14
4
votes
2 answers

Can't start Java, error: Could not reserve enough space for object heap

I'm trying to get Solr up and running. At first I had the JDK.1.6 working fine, then tomcat running fine too. All of a sudden when trying to run Solr for the first time however I get the error message: [root@78 bin]# ./java -version Error occurred…
bluedaniel
  • 37
  • 1
  • 3
4
votes
3 answers

NGINX Not Serving "Fast" Stale Content with proxy_cache_background_update

We are running NGINX in front of our backend server. We are attempting to enable the proxy_cache_background_update feature to allow NGINX to async updates to the cache and serve STALE content while it does this. However, we are noticing that it…
Ted Wilmont
  • 191
  • 5
4
votes
4 answers

Almost empty .htaccess file causing 500 error response

I created a test directory called "rewrite" and put a .htaccess file inside with a rewrite rule. When I go to that URL through my browser I get a 500 Internal Server Error. So I thought it was my rewrite syntax and tried a few changes, same thing.…
Anthony
  • 315
  • 4
  • 15
4
votes
1 answer

Apache - Should I use "ProxyPass ..." or "RewriteRule ... [P]" to proxy requests?

The apache documentation says that you can use mod_rewrite to do similar things to mod_proxy, by using the [P] option. Which should I use? Or is there no difference? Right now I'm using ProxyPass from mod_proxy, because I also want to include…
Amandasaurus
  • 31,471
  • 65
  • 192
  • 253
4
votes
1 answer

Is this a proper Content-Type header?

I have a pretty good understanding of the Content-Type header for most cases. I understand that for the following four examples, you would normally follow the MIME-type with charset=your-charset-here. Content-Type "text/plain;…
Jeff
  • 1,416
  • 3
  • 28
  • 50
4
votes
1 answer

How to debug curl? gnutls_handshake failed -unexpected TLS packet (OpenSSL)

How can I debug curl error further when Apache error.log is not showing any? (35) gnutls_handshake() failed: An unexpected TLS packet was received. curl -v https://example.com * Rebuilt URL to: https://example.com/ * Trying 127.0.0.1... *…
Markus
  • 171
  • 1
  • 1
  • 6
4
votes
2 answers

Adding randomized headers in Apache

I would like to add an "X-Slogan" header to Apache's responses set to a value chosen at random from a list of strings. The best solution I've been able to come up with so far is to rotate through the strings based on TIME_SEC, e.g. UnsetEnv…
Gerald Combs
  • 6,441
  • 25
  • 35
4
votes
1 answer

apache mod_rewrite help: writing an exception to a rewrite rule

I have a site with this existing rule: RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] so that it captures all URLs and translates them to this query. How can I precede this with something that will make an exception for URLs of the…
Jason S
  • 626
  • 1
  • 16
  • 28
4
votes
1 answer

How to Enable mod_php On Apache

It seems that I cannot enable the mod_php on apache2 using the latest Ubuntu Server. when I run: sudo a2enmod php5 I get this error: ERROR: Module php5 does not exist! however I am convinced I have php installed correctly. I have even gone as far as…
Max Kulik
  • 228
  • 2
  • 3
  • 10
4
votes
0 answers

How to conditionally unset header in .htaccess file?

I'm trying to conditionally unset X-Frame-Options in an .htaccess file if the request URL begins with /store. This is the code I am working with in .htaccess: # Allow store iframe to be loaded from all locations SetEnvIf Request_URI "^/store"…
Chris
  • 273
  • 2
  • 5
  • 9