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
33
votes
7 answers

Why is Nginx so fast?

How does a site like rambler serve dynamic content so fast? Even faster than Yahoo (which has a server in my country- SE Asia; rambler does not). Is this purely Nginx’s capability? Where should I be looking into to learn about such capabilities? …
Quintin Par
  • 4,373
  • 11
  • 49
  • 72
33
votes
3 answers

PHP: What are the advantages of FastCGI over mod_php?

It was recently suggested to me that I use FastCGI with PHP. Now I went to the FastCGI page and read it but I don't really understand what the advantages are.
cletus
  • 9,999
  • 9
  • 37
  • 40
33
votes
6 answers

RSA certificate configured for SERVER does NOT include an ID which matches the server name

I recently started a LAMP server (all the latest versions) w/ WordPress on it, and I'm trying to install a SSL certificate that I recently purchased. When I restart apachectl, error_log gives me this: [Tue Feb 25 01:07:14.744222 2014]…
eclipsis
  • 433
  • 1
  • 4
  • 9
33
votes
7 answers

Apache VirtualHost with mod-proxy and SSL

I am trying to set up a server with multiple web applications which will all be served through apache VirtualHost (apache running on the same server). My main constraint is that each web application must use SSL encryption. After googling for a…
JMD
  • 731
  • 1
  • 7
  • 9
31
votes
6 answers

Apache in Docker: How do I "access.log"?

I'm just getting started with Docker and richt now I'm trying to figure out how to set up my first dockerized Apache 2 / PHP environment. Up to now I have been using full Linux VMs, where I used log-files being written to /var/log/apache2, then use…
BlaM
  • 3,886
  • 5
  • 27
  • 28
31
votes
3 answers

Non-interactive creation of SSL certificate requests

Is there a way to create SSL cert requests by specifying all the required parameters on the initial command? I am writing a CLI-based web server control panel and I would like to avoid the use of expect when executing openssl if possible. This is a…
dotancohen
  • 2,590
  • 2
  • 25
  • 39
31
votes
5 answers

How to dump entire HTTP requests with apache

Is it possible to dump entire HTTP requests by apache? I need to track all HTTP headers of incomming requests. How to do that?
Alex
  • 2,357
  • 5
  • 32
  • 41
31
votes
5 answers

Why not use a WAMP stack?

This is a canonical question about the use of a *AMPP's stack. I recently had a talk with some experienced people and they suggested to me not to use a WAMP stack, and instead install apache, mysql and php separately. I don't understand why they…
matang
  • 446
  • 1
  • 4
  • 5
31
votes
9 answers

Why might Apache ignore a virtual host with a ServerName matching the requested URL?

I'm trying to add a second virtual host to my apache configuration, but cannot seem to get the new virtual host to be used. My httpd.conf just contains the following line: ServerName radiofreebrighton.org.uk I also have a ports.conf file, which…
Tom Wright
  • 914
  • 3
  • 12
  • 25
31
votes
3 answers

How to configure Apache (sites-available vs httpd.conf)

I've been trying to follow a few basic tutorials explaining how to get Apache up and running (on ubuntu, running on Amazon). I've mostly come up blank, because all the tutorials told me to configure httpd.conf (to add DocumentRoot, etc.). I've now…
Edan Maor
  • 489
  • 1
  • 4
  • 7
31
votes
2 answers

How to install mod_headers

how can I activate / install mod_headers on my server?
Belgin Fish
  • 919
  • 5
  • 17
  • 31
31
votes
8 answers

Securing PHP webservers

PHP applications have a reputation for higher than average security problems. What configuration techniques do you use for making sure the application is secure as possible? I'm looking for ideas like: Using Hardened PHP/Suhosin Using…
David Pashley
  • 23,497
  • 2
  • 46
  • 73
31
votes
3 answers

How do I cleanly remove apache2 server on ubuntu server and then reinstall?

I am having some wierd issues with Apache2 server on my ubuntu server. I believe some configuration files may have been tampered with. What is the easiest way to remove apache2 completely from my server. I am aware of how to install by using sudo…
TheJediCowboy
  • 613
  • 3
  • 8
  • 12
31
votes
3 answers

How do I get SELinux to allow Apache and Samba on the same folder?

In the configuration I have setup I wish to allow samba and apache to access /var/www I am able to set a context to allow samba access, but then httpd doesn't have access. Using setenforce to 0 eliminates issues so I know that it is SELinux. In…
Joshua Enfield
  • 3,454
  • 8
  • 42
  • 59
30
votes
6 answers

How do I find out where the web site's code resides?

The facts: there is a website this website is accessible via www.example.org there is an EC2 instance which very likely keeps the website the server is Apache the server OS is Ubuntu I have full access to the server (and sudo privileges) the…
Raffael
  • 689
  • 7
  • 15