Hi, I'm trying to set up Virtual Hosts on my local server (Not public).
I am having problems though. I've done this before and had it work prefectly, but I don't remember how I got it to work last time.. but here's my problem..
In the httpd.conf file, I have added the <VirtualHost> tags for 2 separate sites. But only the "default" (*:80) one works.. BTW, I'm on a Windows system.
Code:
NameVirtualHost *:80
<VirtualHost server1:80>
ServerAdmin tyler@localhost
DocumentRoot 'C:/Program Files/xampp/htdocs/tyler'
ServerName server
</VirtualHost>
<VirtualHost *:80>
ServerAdmin admin@localhost
DocumentRoot 'C:/Program Files/xampp/htdocs'
ServerName server
</VirtualHost>
It's server1 that won't work for me. Please tell me what I've done wrong, or any possible things I've missed!
Edit: also, i know that the directorie are correct because when i change the DocumentRoot in *:80 to 'C:/Program Files/xampp/htdocs/tyler' it works as expected, but not for the expected VirtualHost
Thanks,
Tyler