+ -
当前位置:首页 → 问答吧 → 在APACHE中,同一个IP配置两个虚拟主机的例子

在APACHE中,同一个IP配置两个虚拟主机的例子

时间:2008-11-26

来源:互联网

Apache下同一个IP配置多个虚拟主机

NameVirtualHost 192.100.100.1

<VirtualHost 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
</VirtualHost>

<VirtualHost 192.100.100.1>
    ServerAdmin [email protected]
    DocumentRoot /wwwroot2
    ServerName www.b.com
    ErrorLog logs/b.com-error_log
    CustomLog logs/b.com-access_log common
</VirtualHost>

作者: qingqiang   发布时间: 2008-11-26

这段代码写在哪个文件里面?

作者: hengyoushan   发布时间: 2009-02-02

Apache的配置文件http.conf里

作者: 网鬼   发布时间: 2009-02-03

我打开大学生论坛www.inwowgold.com主页时时显示网页有错误,怎么回事啊?












---------------------------------------------------------------------------------------------------------------------------------------
buy cheap wow gold WoW Account ffxi gil sell wow gold wow power leveling

作者: showgirl7   发布时间: 2009-02-11