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
24
votes
4 answers

How can I solve the apache2 httpd error "mixing * ports and non-* ports with a NameVirtualHost address is not supported"

Here is the error I get when booting up Apache2: * Starting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName [Wed Oct 21 16:37:26 2009] [error] VirtualHost *:80 --…
rcampbell
  • 1,035
  • 4
  • 14
  • 24
24
votes
1 answer

Apache logs other user read permissions

We have several developers who maintain the system and I want them to easily read the log files in /var/log/httpd without needing root access. I set the read permission for 'other' users but when I run tail on the log files I get permission…
user2344668
  • 361
  • 1
  • 2
  • 5
24
votes
10 answers

How to inject HTML code into every delivered HTML page?

I've got an Apache web server that delivers static HTML pages. For some reason I can't change the files themselves, but I still want to inject some HTML into every page that is being served. Is this possible with mod_proxy? If not, could anyone…
Node
  • 1,644
  • 1
  • 13
  • 15
24
votes
7 answers

How to deny the web access to some files?

I need to do an operation a bit strange. First, i run on Debian, apache2 (which 'runs' as user www-data) So, I have simple text file with .txt ot .ini, or whatever extension, doesnt matter. These files are located in subfolders with a structure like…
Strae
  • 457
  • 1
  • 8
  • 22
23
votes
3 answers

Apache proxy_http redirect to ip and set hostname

hopefully you guys can help me with a proxy problem I have. What I already have I have set up an apache http reverse proxy, to proxy requests from *.proxy.domain to *.intern.domain. The apache is the only way to reach my internal webapplications…
mohrphium
  • 645
  • 2
  • 9
  • 17
23
votes
2 answers

why do nginx process run with user nobody

I was trying to setup nginx to run with one of my rails apps, when having a look at output for ps -e | grep nginx , I realised nginx worker processes run with user nobody. Is there a reason why they are not running as www-data ?
Anshul Goyal
  • 416
  • 1
  • 8
  • 18
23
votes
2 answers

Apache: What is the best way to handle thousands of permanent redirects?

We've a list of 3000 301 redirects. We need assistance on What would the best place to put these? It seems putting these 3000 lines inside vhost in httpd.conf would be a mess. What are recommended ways to handle thousands of urls? How much is it…
ucker
  • 245
  • 2
  • 5
23
votes
6 answers

How can I enable logging for requests going through mod proxy

Is there a way to log requests going through mod proxy? I need a way to debug my configuration, because I don't seem to be getting where I should be. I need the following information: headers of incoming requests what is being sent to the proxy…
Kariem
  • 541
  • 2
  • 6
  • 14
23
votes
2 answers

How should I use the directive in .htaccess?

I'm trying to add a conditional statement using Apache's If directive in my .htaccess file. I have referenced this page http://httpd.apache.org/docs/trunk/mod/core.html#if but it doesn't elaborate much / give many examples. Two incomplete examples…
cwd
  • 2,763
  • 9
  • 33
  • 48
23
votes
9 answers

Server under DDOS attack - How to find out IPs?

My server is under DDOS attacks and I want to block the IP that is doing it, what logs should I be looking for to determine the attacker's IP?
Ben
  • 3,800
  • 18
  • 65
  • 96
23
votes
12 answers

Subversion error: Repository moved permanently to please relocate

I've set up subversion and apache on my server. If I browse to it through my webbrowser it works fine (http://svn.host.com/reposname). However, if I do a checkout on my machine I get the following error: Command: Checkout from…
Bart S.
  • 283
  • 1
  • 4
  • 10
22
votes
2 answers

https timeout while http works

I've set up SSL for my domain and it works from Apache perspective. The problem is that accessing my domain over HTTPS sometimes results in timeouts. When it doesn't work, it takes some time to access my website over HTTP but it never times out. Why…
6bytes
  • 805
  • 2
  • 10
  • 15
22
votes
2 answers

Can you use Redirect and Proxypass at the same time

I am using Apache 2.2.15 on CentOS to provide SSL for a TomCat application. ProxyPass / http://127.0.0.1:8090/ connectiontimeout=300 timeout=300 ProxyPassReverse / http://127.0.0.1:8090 This works fine and everything is great; however, I want to…
bombcar
  • 323
  • 1
  • 2
  • 5
22
votes
3 answers

what is Centos 5's apache user/group

HI I know this is basic but can anyone tell me what the default user/group names are for apache 2 on centos 5/6 please. Google is just giving me junk.
Alex
  • 345
  • 1
  • 2
  • 9
22
votes
3 answers

Turn off error and access logs for one virtual host

If I dont set a error log inside a virtual host it will default to the default error/access log. Is there a way to turn this off for one virtual host?
John Magnolia
  • 1,723
  • 6
  • 28
  • 46