萬盛學電腦網

 萬盛學電腦網 >> 網絡編程 >> php編程 >> APACHE中如何在同一個IP配置兩個虛擬主機

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

copyright © 萬盛學電腦網 all rights reserved