linux下配置虚拟主机httpd.conf的问题

由 flashhand 在 07-18-2004 13:55 发表:

linux下配置虚拟主机httpd.conf的问题

我在linux下做了一个dns,主域名为sina.com,二级域名有两个为

www.sina.com

mail.sina.com

都解到同一个ip 192.168.2.3上,

然后在httpd.conf里设置如下:

 1<virtualhost 192.168.2.3="">   
 2  
 3ServerAdmin [email protected]   
 4  
 5DocumentRoot /www/1   
 6  
 7ServerName www.sina.com   
 8  
 9ServerAlias www.sina.com   
10  
11ErrorLog logs/dummy-host.andsky.com-error_log   
12  
13CustomLog logs/dummy-host.andsky.com-access_log common   
14  
15DirectoryIndex index.htm   
16  
17</virtualhost>
 1<virtualhost 192.168.2.3="">   
 2  
 3ServerAdmin [email protected]   
 4  
 5DocumentRoot /www/apache2/htdocs/   
 6  
 7ServerName mail.sina.com   
 8  
 9ServerAlias mail.sina.com   
10  
11DocumentRoot /www/2   
12  
13ErrorLog logs/mail.log   
14  
15CustomLo</virtualhost>
Published At
Categories with 服务器类
Tagged with
comments powered by Disqus