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

If you're reading my question, thanks, I appreciate your help

I'm using Wamp on Windows Vista.

I've created 2 project folders:


My virtual hosts file looks like this:

NameVirtualHost *:80

<VirtualHost *:80>
    DocumentRoot "C:/wamp/www/project1/"

<VirtualHost *:80>
    DocumentRoot "C:/wamp/www/project2/"

Can someone advise how I can go about doing this?

share|improve this question

closed as off-topic by Hyppy, dawud, Scott Pack, 84104, masegaloeh Apr 18 '15 at 3:02

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions on Server Fault must be about managing information technology systems in a business environment. Home and end-user computing questions may be asked on Super User, and questions about development, testing and development tools may be asked on Stack Overflow." – Hyppy, dawud, Scott Pack, masegaloeh
If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 1 down vote accepted

If the DNS for those domains is pointing elsewhere, you will have to add entries to your hosts file for them if you want them to resolve locally, eg:

Of course, if you want the whole world to connect to your local server when they visit those domains, you would need to edit the DNS settings for the domains.

share|improve this answer
That's not enough though, because all this does is take me to the webroot /wamp/www/. But I'm trying to forward and to the /first/ and /second/ folders which are one level deeper within the web root, hence my attempt to use Virtual Hosts and httpd-vhosts.conf. Any ideas why it's taking me to the root and not to the folders inside it? – Chris Oct 4 '09 at 13:23
Ok I take that comment back. It looks like it was acting up because it looks like I had to restart Apache. I'm doing some testing now before I give the final verdict, and will update the thread when done. – Chris Oct 4 '09 at 13:58

Umm, I don't think that really answered his question?

Try following this tutorial, and let me know if you still can't get it working:

share|improve this answer