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
1 answer

Why does Apache return a 405 error code on a PUT request to a file or directory that doesn't exist?

I recently discovered that when I make a PUT request to Apache to a file or directory that does not exist I get a 405 Method Not Allowed error instead of a 404 Not Found error. I am curious as to why? PUT request from curl: curl -i -X PUT -d…
user2395126
  • 325
  • 1
  • 4
  • 11
4
votes
1 answer

Configure the server & DNS like: Accept all domains that use our spesific nameservers

First, I will describe the problem: I have a domain portfolio website. Every domain have a forsale page like this: www.myportfoliosite.com/thedomainforsale.com I want to park my domains but I need only a simple redirection to our for sale page. I…
4
votes
1 answer

The connection was reset

I recently setup a subdomain on my clients web server. Here is the vhost setup: Listen *:80 #primary domain # rails public folder DocumentRoot /u1/thisdomain.com/public ServerName thisdomain.com RailsEnv…
Jake Wilson
  • 8,814
  • 29
  • 97
  • 125
4
votes
1 answer

How to install APXS into existing Apache?

I'm running an Apache 2.0.52 and I would like to install a new module. For this, I need the APXS (Apache Extension Tool). It is not installed in my Apache version so I need to install it. I don't have any internet access on the server so I cannot…
hanswurst
4
votes
1 answer

How to block IP address on Apache when it comes from proxy

I have the URL I need to restrict access for specific IP (10.0.0.5). When I do it for direct access in the next way it works perfect: Order Allow,Deny Deny from 10.0.0.5 Allow from all But , when this IP…
Uri Gorobets
  • 49
  • 1
  • 4
4
votes
0 answers

How to configure Apache to make him check the client certificate with the one in LDAP?

I’m trying to configure my Apache server for an HTTPS authentication with client certificates using LDAP as my users directory. What I want to do is that Apache asks users to authenticate themselves with a certificate (so without a login/password)…
Alberic
  • 41
  • 3
4
votes
5 answers

Find which pages cause load?

I'm not normally a sysadmin, but I've got a production server under heavy load (serving some basic php pages, and some php redirect files that have some sql queries, and no images) that keeps crashing. Specifically, the load gets up to about 20 and…
linkedlinked
  • 446
  • 1
  • 3
  • 11
4
votes
2 answers

Exchange and Apache servers on same external IP

My network has an exchange server and an apache server hosting a web site. Exchange is 192.168.1.10 Apache is 192.168.1.12, secured with SSL Router/firewall is 192.168.1.1 My external static ip address (for example) is 1.1.1.1 www.aaa.com I have…
Darren
  • 51
  • 1
4
votes
2 answers

Multiple Rails sites using Passenger and VirtualHosts?

What I am trying to do is run multiple Rails apps from a server machine at work. We dont have multiple hostnames for the box. We want to host some rails apps on it as well as our php apps. Currently users can connect http://computername/app/. How…
4
votes
1 answer

Does Apache look at .htaccess files above a VirtualHost's DocumentRoot?

I am trying to setup a subdomain on a server of mine, where blog.domain.com serves the content from domain.com/blog/ Perhaps this is the wrong way of doing this entirely, but I have setup a blog.domain.com VirtualHost for this, whose DocumentRoot is…
obeattie
  • 304
  • 1
  • 6
  • 13
4
votes
4 answers

Apache memory issues

So I'm sure this has probably been asked before, but I want to make sure that I'm getting the right info. I'm running a 360 Linode box with Debian 5 and Apache 2.2. I've compiled everything myself (no apt-get). Every now and then (once every few…
mattbasta
  • 641
  • 1
  • 8
  • 17
4
votes
1 answer

rewrite / restrict specific domain name in apache

We have https://example1.com/login and example2.com/login being hosted from the same apache server (2.2.22). I want to restrict /login on example1.com. example1.com/login --> 404 (preferably) or 403 example2.com/login --> login page I…
akay
  • 53
  • 1
  • 5
4
votes
3 answers

Apache httpd conf file configuration mismatch

I have been facing a weird problem since last 3 days; I have done what was all required for me to do before posting my question here. My httpd.conf looks like below: NameVirtualHost *:443 Listen *:443 ServerName…
4
votes
2 answers

Multiple SSL Certificate on Apache

I know that you need multiple IP addresses if you want to use multiple SSL certificate with Apache. Assuming I have 2 IPs on my VPS (let's name them 1.1.1.1 and 2.2.2.2), I was wondering if the following setup is possible: domain1.com would be on…
user24994
  • 293
  • 1
  • 3
  • 6
4
votes
7 answers

Mixing Multi-Master Replication (MMR) with Linux-HA

I'm interested in using MMR (http://mysql-mmm.org/) for high availability and replication purposes. The problem is, I'm also interested in using Linux-HA for other services, such as Apache. The two overlap when it comes to certain things, such as…
imaginative
  • 1,971
  • 10
  • 32
  • 48