Posted by:
hambuler
(---.cpe.net.cable.rogers.com)
You need to enable the virtual host file in httpd.conf. The file name is httpd-vhosts.conf in extra folder. Then edit that file to suite your requirement. The sample of VirtualHost is:
NameVirtualHost 192.168.1.152:80
#Replace the IP add with your actual local IP address
<VirtualHost 192.168.1.152:80>
ServerAdmin
webmaster@yourwebsitename.comDocumentRoot "D:/yoursiterootDiretory/"
ServerName www.yourwebsitename.com
ServerAlias yourwebsitename
<Directory "D:/yoursiterootDiretory/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
</Directory>
ErrorLog "logs/yourwebsiteName_error.log"
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel debug
CustomLog "logs/ourwebsiteName_access.log" combined
</VirtualHost>