NameVirtualHost 192.168.0.2:80
<VirtualHost www.zjeers.gov.cn:80>
# ServerAdmin webmaster@zjeers.gov.cn
ServerAlias www.zjeers.gov.cn
DocumentRoot "//192.168.0.1/zjeers/zjeers1"
ServerName zjeers
ErrorLog logs/zjeers.gov.cn-error_log
CustomLog logs/zjeers.gov.cn-access_log common
</VirtualHost>
<VirtualHost www.zjeers.net:80>
# ServerAdmin webmaster@zjeers.gov.cn
ServerAlias www.zjeers.net
DocumentRoot "//192.168.0.1/zjeers/zjeers2"
ServerName zjeers
ErrorLog logs/zjeers.gov.cn-error_log
CustomLog logs/zjeers.gov.cn-access_log common
</VirtualHost>
同一服务器,多个网站同一端口的实现