Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

share|improve this question

2 Answers 2

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.