PCHomepage
Programmer
I've always used individual IPs (127.0.0.1, 127.0.0.2, etc.) on my local development system and just realized that I can use the same for all although I cannot get it to work. It just gives a directory listing of the root (the browser is on the same system as the server).
In hosts I have something like:
httpd.conf has in part:
httpd-vhosts.conf has in part:
Although I didn't reboot the system I did restart Apache after any changes. What am I missing?
In hosts I have something like:
Code:
127.0.0.1 localhost
127.0.0.1 site1
127.0.0.1 site2
127.0.0.1 site3
httpd.conf has in part:
Code:
ServerRoot "C:/Server/Apache"
Listen 80
DirectoryIndex index.php
Include "conf/extra/httpd-vhosts.conf"
httpd-vhosts.conf has in part:
Code:
NameVirtualHost *.80
<Directory C:/Server/Sites>
Order Deny,Allow
Allow from all
</Directory>
<VirtualHost *:80>
DocumentRoot C:/Server/Sites
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot C:/Server/Sites/site1
ServerName site1
ServerAlias site1
</VirtualHost>
<VirtualHost *:80>
DocumentRoot C:/Server/Sites/site2
ServerName site2
ServerAlias site2
</VirtualHost>
<VirtualHost *:80>
DocumentRoot C:/Server/Sites/site3
ServerName site3
ServerAlias site3
</VirtualHost>
Although I didn't reboot the system I did restart Apache after any changes. What am I missing?