NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "C:\domain\huy.net"
ServerName huy.net
DirectoryIndex index.php index.htm
<Directory "C:\domain\huy.net">
Allow from All
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "C:\domain\huy.com"
ServerName huy.com
DirectoryIndex index.php index.htm
<Directory "C:\domain\huy.com">
Allow from All
</Directory>
</VirtualHost>
Append 2 following lines to file C:\Windows\system32\drivers\etc\host
127.0.0.1 huy.net
127.0.0.1 huy.com
Title:
File httpd-vhosts.conf example
Description:
NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot "C:\domain\huy.net" ServerName huy.net DirectoryIndex index...
...
Rating:
4