Forum Moderators: mack
I would like to access the sites directly via [mysite...] and [othersite....] So, I just set the VirtualHost in the httpd.conf as
NameVirtualHost mysite
<VirtualHost mysite>
ServerAdmin webmaster@example.com
DocumentRoot c:/my documents/web/mysite
ServerName mysite
</VirtualHost>
<VirtualHost othersite>
ServerAdmin webmaster@example.com
DocumentRoot d:/www/othersite
ServerName othersite
</VirtualHost>
but this does not work.
What did I do wrong? Anything need to be set particularly in Apache for Windows?
Thank you.
You'll then end up with a httpd.conf looking much like this:
NameVirtualHost 172.16.100.01
<VirtualHost 172.16.100.01>
DocumentRoot "/path/to/site1/on/this/partition"
ServerName sitename
</VirtualHost>
NameVirtualHost 172.16.100.02
<VirtualHost 172.16.100.02>
DocumentRoot "/path/to/site2/on/this/partition"
ServerName sitename2
</VirtualHost>
Probably not right, but it works. HTH