I apologize, but this is difficult to figure out.
I am running Apache 2.2, this is on a Windows box, my own home PC for development use only. Windows XP Pro SP3.
I have five sites that I need to create virtual hosts for. Each has the same URL but different IP addresses and different folders.
I have the URL + port pointing to 127.0.0.1 in the hosts file, but can't get the syntax correct for the virtual hosts.
<VirtualHost site.local:1> DocumentRoot "C:/www/1" ServerName site.local:1 </VirtualHost> <VirtualHost site.local:2> DocumentRoot "C:/www/2" ServerName site.local:2 </VirtualHost> <VirtualHost site.local:3> DocumentRoot "C:/www/3" ServerName site.local:3 </VirtualHost>
And no, these are not real ports I plan to use, just to give you a basic example of the folder structure and URL structure.
I put a standard index.html in one of the folders and then I try to go to that URL and it always times out.
So I want to know the correct syntax and how to do this in the future, because this part seems to be always confusing.