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

this is my httpd.conf:

<VirtualHost *>
    DocumentRoot /home/www/domain1

<VirtualHost *>
    DocumentRoot /home/www/domain2

What is wrong when the browser always shows first entry - /home/www/domain1?

Thanks, Etam.

share|improve this question

1 Answer 1


a. You're missing the NameVirtualHosts settings:


b. the domain you're visiting matches, or it doesn't match either (apache will default to the first one.)


c. the method/client you're using to visit the web page doesn't send the appropriate headers for the server name ('ancient' clients per the apache docs)

share|improve this answer
Begin from C point! – lg. Jul 1 '10 at 8:35
Good Idea. Thanks. – John Weldon Jul 1 '10 at 8:44

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.