I am attempting to set up virtual hosts in apache2triad on win xp for local dev but when I
point my browser to my-domain.com I never go to my index.htm file but to htdocs dir.
Here is the httpd set up, could anyone tell me what's wrong with it? Thanks
ServerRoot "C:/apache2triad"
ServerName localhost:80
ServerAdmin admin@localhost
DocumentRoot "C:/apache2triad/htdocs"
NameVirtualHost *
<VirtualHost *>
ServerName my-domain.com
ServerAdmin webmaster@my-domain.com
DocumentRoot "c:/apache2triad/htdocs/ErrorLog "logs/my-domain.com-error_log"
CustomLog logs/my-domain.com-access_log common
</VirtualHost>
I've also taken care of the hosts file with:
127.0.0.1 localhost
127.0.0.1 my-domain.com
point my browser to my-domain.com I never go to my index.htm file but to htdocs dir.
Here is the httpd set up, could anyone tell me what's wrong with it? Thanks
ServerRoot "C:/apache2triad"
ServerName localhost:80
ServerAdmin admin@localhost
DocumentRoot "C:/apache2triad/htdocs"
NameVirtualHost *
<VirtualHost *>
ServerName my-domain.com
ServerAdmin webmaster@my-domain.com
DocumentRoot "c:/apache2triad/htdocs/ErrorLog "logs/my-domain.com-error_log"
CustomLog logs/my-domain.com-access_log common
</VirtualHost>
I've also taken care of the hosts file with:
127.0.0.1 localhost
127.0.0.1 my-domain.com