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

作者:袖梨 2022-07-02
Apache下同一个IP配置多个虚拟主机
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


相关文章

精彩推荐