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

The title pretty much sums it up. Do I need to have a default vhost in Apache or Nginx?

share|improve this question
up vote 3 down vote accepted

I typically set my default virtual host as a "go away" with 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

No, you don't both support single server installation. It's just helpful if you're running multiple sites from the same server.

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.