Sign up ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I want to run 2 websites. One for, and the other for everything else (,

How I do it?

I tried:

<virtualhost *:80>
#no server name

But I ALWAYS get the second website. Thank you.

share|improve this question

1 Answer 1

The default host that is the one that is first

# Default host (must be first)
<virtualhost *:80>    
    # I use localhost.localdomain, but any host name not matching later hosts gets handled here
    Servername localhost.localdomain
    DocumentRoot /home/www/default_site
<virtualhost *:80>
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.