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
2 answers

Better webserver performance for Python Django: Apache mod_wsgi or Lighttpd fastcgi

I am currently running a high-traffic python/django website using Apache and mod_wsgi. I'm hoping that there's a faster webserver configuration out there, and I've heard a fair number of recommendations for lighttpd and fastcgi. Is this setup faster…
BrainCore
  • 161
  • 1
  • 3
4
votes
2 answers

Unable to upload a big file to server behind nginx as a reverse proxy

I use nginx as a reverse proxy. Behind it is coming apache hosing foo.com . In order to upload a big file, I set post_max_size = 20M and upload_max_filesize = 20M in php.ini . But I can't upload file with size bigger than 2MB. My nginx configuration…
Mohsen Saberi
  • 95
  • 1
  • 3
  • 7
4
votes
1 answer

Apache rewrite works under FreeBSD, not under CentOS

I have 5 production servers which are running FreeBSD 9.2, but we are planning on transitioning to CentOS. Because of this, I am attempting to set up some virtual machines to emulate our production server environment using CentOS 6.6. I have set…
Peter
  • 123
  • 1
  • 1
  • 7
4
votes
1 answer

Apache Redirect Permanent Not Working

I have two redirects on my site. One of them is working, and one of them is not. Here are the relevant lines from my configuration, edited to protect the innocent. ServerName notworking.com ServerAlias www.notworking.com Redirect…
ctlacko
  • 141
  • 1
  • 5
4
votes
2 answers

Apache error - File name too long: Cannot map GET

I have PHP Laravel application installed on my CentOS VPS. It is backend for my mobile application that has been recently updated. Unfortunately I wrote some bad code that results in making request that is concatenation of hundreds, maybe thousands…
4
votes
0 answers

OlegDB in production

When evaluating available NoSQL solutions, our team identified following product for evaluation: OlegDB. Site looks pretty decent and documentation is available. While site says it's production-ready (here), I'd like to know community opinion before…
Lev Kassil
  • 41
  • 1
4
votes
2 answers

Redirect depending on preferred language (Accept-Language) with .htaccess

When users request /, I want to redirect them to /en or /de, depending on their preference specified in the HTTP request header Accept-Language. I guess this is easy with server-side scripting, but I need a .htaccess solution as it has to work for a…
unor
  • 246
  • 2
  • 19
4
votes
2 answers

Website is being targeted by mail bots

I have a small website. When I perform a netstat is shows a lot of traffic from .p.mail. I think this is some kind of mail bot, trying to harvest email addresses from my website. How can I prevent this? I added this to my htaccess RewriteCond…
Inktown
  • 41
  • 1
4
votes
3 answers

Simple User's Guide / Tutorial for Apache httpd?

Is there a simple user guide or tutorial for Apache httpd? I find that the official documentation (http://httpd.apache.org/docs/2.2/) is a little hard to navigate and learn from if you're not up to speed with a lot of the basics.
digiarnie
  • 253
  • 1
  • 2
  • 6
4
votes
3 answers

Block traffic behind AWS ELB

My web servers are behind ELB, I want to block traffic from some specific user agent which is a DDOS attack. Apache always see ip address of ELB as an end user so I tried below attempts: Blocking IP address at ELB level is not possible because it…
Deepak Deore
  • 691
  • 1
  • 9
  • 16
4
votes
0 answers

mod_ssl client certificates on a reverse proxy

I am trying to add client certificate authentication on a reverse proxy that proxies an oracle application. Before adding, and if i remove the subsequent code, the oracle application is able to start java, load, and function properly. When I add the…
4
votes
1 answer

Apache Reverse Proxy Unescapes URL

I am running Apache 2.2.15 as a reverse proxy in my DMZ. I have an application on the internal network that I make available on the Internet for staff to use by going through the reverse proxy. As part of this application staff can see messages…
4
votes
1 answer

Can Apache .htaccess convert the percent-encoding in encoded URIs from Win-1252 to UTF-8?

I want to add a directive in my .htaccess, such that if the browser is pointed at a URI containing %E4 (ä) - or any other special character - the .htaccess automatically rewrites %E4 (ä) as %C3%A4 (ä). In summary, I want .htaccess to convert…
Rounin
  • 143
  • 7
4
votes
2 answers

Can an Apache proxy send one request to multiple servers?

We would like to send the request received by an Apache proxy to all of a set of downstream servers (in fact, also proxies, but I don't think this matters). We know that all but at most one of these requests will fail, for a variety of reasons…
4
votes
2 answers

Multiple websites on multiple servers - seperate mysql or not

I currently have 2 Debian servers (VPS with 4 GB memory) and am hosting a variety of websites of differing importance: some are production sites, while others are demo/staging/test sites. Approximately 15-20 websites, one of which will have a fair…
Purplefish32
  • 323
  • 1
  • 2
  • 5