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
50
votes
3 answers

stop apache from asking for SSL password each restart

Using instructions from this site but varying them just a little i created a CA using -newca, i copied cacert.pem to my comp and imported as trusted issuer in IE. I then did -newreq and -sign (note: i do /full/path/CA.sh -cmd and not sh CA.sh -cmd)…
user274
49
votes
8 answers

Ubuntu Apache: httpd.conf or apache2.conf?

which one of these two files should I use to configure Apache? The httpd.conf is empty, while apache2.conf is not. It confuses me!
ajsie
  • 1,215
  • 4
  • 20
  • 28
48
votes
2 answers

How does Apache merge multiple matching Location sections

I'm working on some basic apache configuration, but I don't understand precisely how apache merges different sections when several of them match an incoming requests URL. The apache documentation in its "How the sections are merged"…
LordOfThePigs
  • 717
  • 1
  • 7
  • 7
48
votes
5 answers

How can I tell which config file Apache is using?

I'm trying to set up virtual hosts on Mac OS X. I've been modifying httpd.conf and restarting the server, but haven't had any luck in getting it to work. Furthermore, I notice that it's not serving files in the DocumentRoot mentioned in httpd.conf…
Claudiu
  • 1,207
  • 5
  • 21
  • 28
47
votes
6 answers

Apache "Client denied by server configuration", despite allowing access to directory (vhost configuration)

in Apache on Ubuntu I've set up a vhost, but in the browser I keep getting a "403 Access forbidden" error; the log says "Client denied by server configuration: /home/remix/". Looking for the solution online I found many posts about the directory…
GroovyPanda
  • 573
  • 1
  • 4
  • 6
46
votes
8 answers

Getting 408 errors on our logs with no request or user agent

I'm getting a lot of requests turning up in our apache logs that look like this www.example.com:80 10.240.1.8 - - [06/Mar/2013:00:39:19 +0000] "-" 408 0 "-" "-" - There seems to be no request and no user agent. Has anyone seen this before?
Glenn Slaven
  • 2,400
  • 2
  • 30
  • 42
46
votes
5 answers

Check the Number of active connections on port 80?

I have a webserver, i need to check number of connections in my server at that given time, i used following netstat -anp |grep 80 |wc -l this returned with 2542 but from my google analytics's i know that simultaneous users is not more than…
mahen3d
  • 4,342
  • 14
  • 36
  • 57
46
votes
2 answers

Serve http (port 80) and https (port 443) on same VirtualHost

I need to setup my VirtualHost on Apache to serve on both http and https (using standard ports) If I enable the SSL Engine (as per below) - I get an error when on port 80. The reason is, parts of the site need to be SSL but other parts don't. How…
kron
  • 735
  • 2
  • 6
  • 8
45
votes
6 answers

Configuring Apache2 to proxy WebSocket?

The WebSocket protocol is an extension of the HTTP protocol. However, the proxy module of Apache2 does not seem to know about it, and throws away crucial headers, converting the call to a standard HTTP call. Is there a way to make Apache2 either (1)…
Blixt
  • 595
  • 1
  • 4
  • 7
45
votes
2 answers

Difference between and Apache directives

I have Zend Server installed and noticed something like the following was added to my httpd.conf file: Order Allow,Deny Allow from 127.0.0.1 Alias /ZendServer "C:\Program…
rfgamaral
  • 960
  • 2
  • 11
  • 18
45
votes
5 answers

Nginx vs Apache as reverse proxy, which one to choose

this kind of question maybe has been asked here but I couldn't find any that really match my question. Heard that nginx performance is quite impressive, but Apache has more docs, community(read:expert) to get help Now what I want to know, how both…
mhd
  • 633
  • 1
  • 6
  • 9
43
votes
3 answers

Linux: how to give a user permission to restart apache?

I have a script running under a non-root user which, under certain conditions, should restart apache httpd. What would be the simplest way for me to allow the user to do that? I'm using Ubuntu Server 8.04 LTS.
itsadok
  • 1,869
  • 5
  • 22
  • 33
43
votes
1 answer

Declaring multiple ports for the same VirtualHosts

Declare multiple ports for the same VirtualHosts: SSLStrictSNIVHostCheck off # Apache setup which will listen for and accept SSL connections on port 443. Listen 443 # Listen for virtual host requests on all IP addresses NameVirtualHost…
user65567
  • 671
  • 2
  • 6
  • 9
42
votes
5 answers

AWS ELB Apache2 503 Service Unavailable: Back-end server is at capacity

We've been running a couple websites off Amazons AWS infrastructure for about two years now and as of about two days ago the webserver started to go down once or twice a day with the only error I can find being: HTTP/1.1 503 Service Unavailable:…
JSP
  • 533
  • 1
  • 4
  • 6
42
votes
4 answers

Setup ubuntu server to send mail()

I tried searching a lot but unable to find how to actually setup a ubuntu server, so that I can send mails through php using mail() function in php. I have apache2, mysql and php5 installed on my server. Thank You.
Shishant
  • 683
  • 2
  • 8
  • 13