Home >Backend Development >PHP Tutorial >在APACHE中,同一个IP配置两个虚拟主机的例子_PHP

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-01 12:35:28977browse

Apache虚拟主机

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

NameVirtualHost 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



    ServerAdmin sonymusic@china.com
    DocumentRoot /wwwroot2
    ServerName www.b.com
    ErrorLog logs/b.com-error_log
    CustomLog logs/b.com-access_log common

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn