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

Have a server that, while reviewing the logs, appears to get hit many many many times a day via the direct ip address by automated scripts looking for vulnerabilities. Entries like:

[Sat Jul 31 17:45:01 2010] [error] [client] script '/var/www/phpMyAdmin' not found or unable to stat

I run a number of virtual servers on this system, but nothing at the direct IP. All of these attempts are resulting in a 404, which is fine, but I'd rather not even have the server respond. Any way to configure, say /sites-available/default to simply drop every request it receives?


share|improve this question
Identical to this, answered here:… – troyengel Sep 10 '10 at 16:38
Thanks, that did it. – Paul Mennega Sep 10 '10 at 16:45
up vote 1 down vote accepted

If you don't have a default site, it will use the first vhost applicable for site unless I'm wrong. Just use a default vhost that doesn't do anything and returns 404 or 403 for everything.

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.