Add subdomains to WAMP


WAMP installation on Windows XP SP 3 on C:\wamp\
Dynamic DNS account at ( I will use ).


1. Open c:\wamp\bin\apache\apache2.2.8\conf\httpd.conf

2. Find line: ServerName localhost

3. Replace with line: ServerName (Or you can comment it, it will work, but you will get a warning in apache log)

3. Scroll down to the end of the file and add:

NameVirtualHost *:80

#default root

<VirtualHost *:80>
DocumentRoot “C:/wamp/www”
ServerName *
ServerAlias localhost


<VirtualHost *:80>
DocumentRoot “C:/wamp/www/subdomain”
ServerName todo.myweb

2 thoughts on “Add subdomains to WAMP”

  1. No comprendo!!
    ServerName dummy-host.localhost
    ocumentRoot “C:/Program Files/Apache Software Foundation/Apache2.2/docs/dummy-host.localhost”

    ServerName dummy-host2.localhost

    Everything different here!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.