VHosts with http access?!?
Posted: 03. March 2007 18:44
Have to gettin' bored with all the vhost questions, but I cant seem to figure this out!
I'm trying to host my own homepages (2) and have the dns for the domains pointing at my IP adress. I have then set up my httpd-vhost file setup like this.
NameVirtualHost *:80
<VirtualHost *:80>
ServerName site1.com
ServerAlias www.site1.com
DocumentRoot C:/Program Files/xampp/htdocs/site1.com
</VirtualHost>
<VirtualHost *:80>
ServerName site2.com
ServerAlias www.site2.com
DocumentRoot C:/Program Files/xampp/htdocs/site2.com
</VirtualHost>
Everything else I havent touched.
Now, everytime I try to call on one of the sites e.g. www.site1.com or www.site2.com from a computer outside my router environment it directs me to the rootfolder og htdocs e.g. xampp for windows startpage!?
Can't figure out where I'm going wrong...Somebody please help me!
I'm trying to host my own homepages (2) and have the dns for the domains pointing at my IP adress. I have then set up my httpd-vhost file setup like this.
NameVirtualHost *:80
<VirtualHost *:80>
ServerName site1.com
ServerAlias www.site1.com
DocumentRoot C:/Program Files/xampp/htdocs/site1.com
</VirtualHost>
<VirtualHost *:80>
ServerName site2.com
ServerAlias www.site2.com
DocumentRoot C:/Program Files/xampp/htdocs/site2.com
</VirtualHost>
Everything else I havent touched.
Now, everytime I try to call on one of the sites e.g. www.site1.com or www.site2.com from a computer outside my router environment it directs me to the rootfolder og htdocs e.g. xampp for windows startpage!?
Can't figure out where I'm going wrong...Somebody please help me!