httpd.conf 如果设置邦多个域名?

由 thunderbird 在 06-24-2003 23:50 发表:

httpd.conf 如果设置邦多个域名?

例:

 1<virtualhost 192.168.88.128="">   
 2  
 3ServerAdmin [email protected]   
 4  
 5DocumentRoot /home/mysite/public_html/   
 6  
 7ServerName game.mysite.com   
 8  
 9ErrorLog logs/game.mysite.com-error_log   
10  
11CustomLog logs/game.mysite.com-access_log common   
12  
13</virtualhost>

以上已经正确的邦一个 game.mysite.com ,但如果小弟我想在邦多个怎么邦??如, www.mysite.com 和mysite.com 都在这个目录是不是:

ServerName game.mysite.com, www.mysite.com,mysite.com

这样??

同时,在IIS里我经常把WEB访问的日志去了,这样就不用记录日志了,这个:

ErrorLog logs/game.mysi

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus