Hey, well i have two websites im trying to host on my WAMP server.
one is in the "almir" folder
and the other is in the "cmdowrz" folder
all that are in the "www" folder.
i uncommented the vhost line in httpd.conf and then edited my /extra/httpd-vhosts.conf file to this:
<VirtualHost *:80>
ServerName domain1.com
ServerAlias domain1.com almir
DocumentRoot C:/webserver/www/almir
ErrorLog C:/webserver/www/almir/logs/error.log
CustomLog C:/webserver/www/almir/logs/access.log common
</VirtualHost>
<VirtualHost *:80>
ServerName www.domain2.com
ServerAlias domain2.com domain
DocumentRoot C:/webserver/www/cmdowrz
ErrorLog C:/webserver/www/cmdowrz/logs/error.log
CustomLog C:/webserver/www/cmdowrz/logs/access.log common
</VirtualHost>
(domain1/domain2 are replaced with my actual domains that i have bought.)
when i go to domain1.com it works, but when i try going to domain2.com it takes me to the domain1 website.
ive tried many things before finally posting. but i cant figure it out.
any help?
btw, im using the newest version of wampserver with php 5.2.9-2 and mysql 5.1.32 in case you needed to know.
OH and when it put domain2 first in vhosts, both domains go to domain2.
Edited 2 time(s). Last edit at 09/17/2009 12:48AM by sikwithcarts.