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

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


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.