Thursday, May 6, 2004

How to set up a virtual host in Apache?

Add below to httpd.conf


ServerAdmin admin@testhost.com
DocumentRoot /home/apache/share/htdocs/hostedsites
ServerName www.testhost.com
ErrorLog /home/apache/logs/error/hostedsites/error_log
TransferLog /home/apache/logs/access/hostedsites/access_log

No comments:

Post a Comment