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>