APACHE中如何在同一个IP配置两个虚拟主机
时间:2007-02-17 来源:PHP爱好者
这是一个例子:
NameVirtualHost 192.100.100.1
ServerAdmin [email protected]
DocumentRoot /wwwroot
ServerName www.a.com
ErrorLog logs/a.com-error_log
Customlog logs/a-access_log common
ServerAdmin [email protected]
DocumentRoot /wwwroot2
ServerName www.b.com
ErrorLog logs/b.com-error_log
CustomLog logs/b.com-access_log common
php爱好者站 http://www.phpfans.net c/vc/c++/java.
NameVirtualHost 192.100.100.1
ServerAdmin [email protected]
DocumentRoot /wwwroot
ServerName www.a.com
ErrorLog logs/a.com-error_log
Customlog logs/a-access_log common
ServerAdmin [email protected]
DocumentRoot /wwwroot2
ServerName www.b.com
ErrorLog logs/b.com-error_log
CustomLog logs/b.com-access_log common
php爱好者站 http://www.phpfans.net c/vc/c++/java.
相关阅读 更多 +
排行榜 更多 +