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

How do I convert Nginx location rewrites to Apache

I have a site that was running using nginx but now it is apache Im trying to convert nginx to apache and have had no success This is the nginx file I want to convert to apache: server { listen 80; listen …
Tcmxc
  • 141
  • 1
  • 4
4
votes
2 answers

How can I configure Apache to redirect a subdirectory to a subversion repo?

I have an old subversion repository that was set up as the only repo on a machine. We accessed the URLs like this: http://myserver.com/svn/trunk/... http://myserver.com/svn/branches/... We're moving to a new server where we have several…
Mark S.
  • 211
  • 3
  • 6
4
votes
3 answers

How to block Baidu from indexing MP3 files?

Using Apache I want to prevent people from directly downloading music via url. I just want the flash player to play it. However Baidu MP3 found the files and is establishing direct downloads to my music. Is there a way I can prevent this with…
Moak
  • 734
  • 3
  • 10
  • 31
4
votes
1 answer

Include text file within Apache conf directive

I need to add Alias to a servers main web directive and I don't want to do it through the main config file. I am wondering if there is a way to include text from another file into a directive, for example DocumentRoot…
Greg Alexander
  • 145
  • 1
  • 6
4
votes
1 answer

Is there a potential risk, that something gets broken when enabling an apache module?

Is it safe to assume, that nothing gets broken after enabling an apache module? For example, I want to enable mod_headers on production server, but I'm afraid it can break something, perhaps because it can interact with other modules or because of…
Alex Lomia
  • 143
  • 4
4
votes
2 answers

dmesg SYN flood on 80 sysctl -p

I am getting a synflood on my server port 80 and i cannot stop it. first i got tables full then i disabled iptables to find out that its a synflood netstat -n | grep :80 |wc -l #returns 1300 - 2000 netstat -n | grep :80 | grep SYN |wc -l #returns…
Daniel
4
votes
2 answers

After I installed php 7.x phpinfo is still showing older php 5.x

After I installed php 7.x phpinfo is still showing older php 5.x should i purge the older version? or what? thanks
Francesco
  • 149
  • 2
  • 7
4
votes
1 answer

Apache ProxyPass: pass requested URL as GET parameter to destination URL

Hi I'm trying to set ProxyPass to pass requested URL as GET parameter to destination URL, but I can't figure out how to write it in the config file. I tried something like this: ProxyPass ^(.*)$ http://example.com/?url=$1 ProxyPassReverse ^(.*)$ …
Crylvarrey
  • 41
  • 1
  • 1
  • 2
4
votes
1 answer

Understanding Apache rules in directive

I have tried reading the manual although to be honest I am still finding it hard to understand and get my head around what the Order/Allow actually does. I have the following code inside a virtual host, I'm not clear what this code inside the…
mattia
  • 141
  • 1
  • 1
  • 2
4
votes
2 answers

Apache2 redirect www to non-www (with SSL)

Wise people, I am trying to accomplish the following: Redirect these: http://www.veluwsvuurbarneveld.nl http://veluwsvuurbarneveld.nl https://www.veluwsvuurbarneveld.nl To https://veluwsvuurbarneveld.nl Goal is to send all related URL's to…
4
votes
2 answers

Why won't apache allow symbolic links, with SELinux?

I have a simple scenario: I want to symlink /home/leonard/apache/sandbox/markdown to /home/leonard/github/markdown-editor, so that the markdown-editor can be viewed from my browser. I setup the link with ln -s /home/leonard/github/markdown-editor…
Leonard Challis
  • 53
  • 4
  • 13
  • 27
4
votes
1 answer

Apache - allow malformed headers for backwards compatibility by adjusting error strictness?

We moved a site from Apache 2.2 to 2.4 (same PHP version) and now code that used to work is getting a 500 error due to [core:error] [pid ######] [client ##.##.##.##:#####] malformed header from script 'index.php': Bad header: We identified the issue…
sa289
  • 1,318
  • 2
  • 18
  • 44
4
votes
5 answers

Testing htaccess for 500 server error without actual error

After reading some tutorials, I have created an error file, that should be displayed instead of 500 server error. I have added it to domain's root and added the following line to the bottom of .htaccess: ErrorDocument 500 /error.html Now the…
Domas
  • 161
  • 2
  • 5
4
votes
1 answer

Limits to NFS share sizes

I want to build a bare-metal RHEL box connected to an FC-array that's presenting it a ~16TB LUN, I can format this LUN any way I like (might choose XFS) but I then want to share this volume out to a number of Apache web-serving RHEL VMs running on…
Chopper3
  • 101,299
  • 9
  • 108
  • 239
4
votes
1 answer

How to run a stack trace on Apache?

I have a PHP web application running on Apache/mod_php that works fine for several days and then fails, returns 500 Internal Server Error. I've turned on debug logging and do not see anything in the logs that points to a cause. The only way to fix…
Mike Marseglia
  • 913
  • 8
  • 18