Friday, April 22, 2011

Apache Virtualhosting

/etc/httpd/conf/httpd.conf

NameVirtualHost *:80

ServerAdmin webmaster@virtual01.com
DocumentRoot /var/www/virtual01
ServerName www.virtual01.com
ErrorLog logs/virtual01.com-error_log
CustomLog logs/virtual01.com-access_log common


ServerAdmin webmaster@virtual02.com
DocumentRoot /var/www/virtual02
ServerName www.virtual02.com
ErrorLog logs/virtual02.com-error_log
CustomLog logs/virtual02.com-access_log common

No comments:

Post a Comment