Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 have someone who added my IP address (private server) as an A record to some of his porn domains. Apache is delivering the default page ("It works"), but I try to find a way to not answer the call at all.

Anyone any idea?


share|improve this question
up vote 2 down vote accepted

Set your default virtual host to a 403 forbidden response/message:

<VirtualHost *>
 ServerName nohost
 ErrorDocument 403 "The website you requested was not found on this server"
 RewriteEngine on
 RewriteRule . - [F]
share|improve this answer
And just make sure this default host loads before any of your real virtual hosts. – Shane Madden Sep 13 '11 at 14:46

I once had a similar problem. I solved it using redirects.

Go take a look at this question I posted

You could just redirect all requests to a 404 or a blank page.

share|improve this answer

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.