Friday, October 20, 2006

 

virtual host in apache2

1, declare/unify all the virtual host with IP in /etc/hosts file or DNS.
2, plus the content as follow in the /etc/apache2/sites-enabled/000-default:

DocumentRoot /tmp/test
ServerName kk.org

# as least your must declare to parameter, the documentroot and servername.
be mind that all the servername you want to display must be declare in hosts or DNS.

Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?