Super User is a question and answer site for computer enthusiasts and power users. 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

I'm setting up a local apache server. I use the xampp 1.7 package on windows. One site requires to be in the root directory, so i set up a virtual host to make it apear from root.

In the host file, i've added an entry ( app.localhost).

I've added the virtual host to the apache conf:

<VirtualHost app.localhost:80>
    DocumentRoot "D:/Tools/xampp1.7/htdocs/ovs-v2"
    ServerName app.localhost

    <Directory "D:/Tools/xampp1.7/htdocs/ovs-v2/">
    	AllowOverride All
    	Options FollowSymLinks
    	Order allow,deny
    	Allow from all

The virtual host itself does work, when i go to app.localhost, i get the correct website. When I go to localhost, i get the normal webroot. But when I go to, i get the app.localhost website.

If i disable this virtual host, then all works normal. How can i fix this?

share|improve this question
up vote 2 down vote accepted

You're telling Apache that when it receives a request for a specific named host (VirtualHost app.localhost), it should respond with a specific configuration. Read more about name-based virtual hosts here:

share|improve this answer
Classic case of RTM before use. Thx. – Ikke Oct 7 '09 at 10:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .