Home > Backend Development > PHP Tutorial > How to configure two virtual hosts on the same IP in APACHE_PHP tutorial

How to configure two virtual hosts on the same IP in APACHE_PHP tutorial

WBOY
Release: 2016-07-13 17:12:12
Original
796 people have browsed it

这是一个例子:
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

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/629513.htmlTechArticle这是一个例子: 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...
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template