在APACHE中,同一个IP配置两个虚拟主机的例子
类别: 服务器教程
NameVirtualHost 192.100.100.1
<VirtualHost 192.100.100.1>
ServerAdmin njzadmin@sina.com
DocumentRoot /wwwroot
ServerName www.a.com
ErrorLog logs/a.com-error_log
Customlog logs/a-access_log common
</VirtualHost>
<VirtualHost 192.100.100.1>
ServerAdmin sonymusic@china.com
DocumentRoot /wwwroot2
ServerName www.b.com
ErrorLog logs/b.com-error_log
CustomLog logs/b.com-access_log common
</VirtualHost>
<VirtualHost 192.100.100.1>
ServerAdmin njzadmin@sina.com
DocumentRoot /wwwroot
ServerName www.a.com
ErrorLog logs/a.com-error_log
Customlog logs/a-access_log common
</VirtualHost>
<VirtualHost 192.100.100.1>
ServerAdmin sonymusic@china.com
DocumentRoot /wwwroot2
ServerName www.b.com
ErrorLog logs/b.com-error_log
CustomLog logs/b.com-access_log common
</VirtualHost>
- 上一篇: APACHE用户认证方法汇总
- 下一篇: 解决IIS5 HTTP500内部错误
-= 资 源 教 程 =-
文 章 搜 索