Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I realise this question has been asked tons of times before on the forum but I've eliminated all the usual suspects in my case and still Im not having much luck with this problem.

The works fine but the takes me to the Apache test page.

Here's my DNS entries

A          123.456.244.456

Here'e my apache config:


RewriteEngine on
RewriteCond %{HTTP_HOST}   !^www\.mydomain\.net [NC]
RewriteCond %{HTTP_HOST}   !^$
RewriteRule ^/(.*)$1 [L,R]

copied straight from the Apache docs.

The interesting thing is that ALWAYS goes to the apache test page. Regardless of whether I make it a ServerName or ServerAlias.

share|improve this question
I find it strange the mail V host is www it is generally done the opposite way. – Jacob Mar 16 '11 at 2:47
up vote 2 down vote accepted

Are you using virtual servers on Apache? If so, there may be a default site configured that is causing any domain not '' to be handled by the default handler. As a quick check, try and see if you get the apache test page.

share|improve this answer
Yes that was right. I had a default site config that was placed under sites-enabled by apache that I had not taken out. Did not realize that could be the problem. Still not sure why that would be the case. – UDIT MANEKTALA Mar 16 '11 at 3:04

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.