深入apache host的配置详解
(编辑:jimmy 日期: 2024/11/19 浏览:3 次 )
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host.127.0.0.1
DocumentRoot "D:/dev/Apache2.2/docs/dummy-host.127.0.0.1"
ServerName dummy-host.127.0.0.1
ServerAlias www.dummy-host.127.0.0.1
ErrorLog "logs/dummy-host.127.0.0.1-error.log"
CustomLog "logs/dummy-host.127.0.0.1-access.log" common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host2.127.0.0.1
DocumentRoot "D:/dev/Apache2.2/docs/dummy-host2.127.0.0.1"
ServerName dummy-host2.127.0.0.1
ErrorLog "logs/dummy-host2.127.0.0.1-error.log"
CustomLog "logs/dummy-host2.127.0.0.1-access.log" common
</VirtualHost>
ServerAdmin webmaster@dummy-host.127.0.0.1
DocumentRoot "D:/dev/Apache2.2/docs/dummy-host.127.0.0.1"
ServerName dummy-host.127.0.0.1
ServerAlias www.dummy-host.127.0.0.1
ErrorLog "logs/dummy-host.127.0.0.1-error.log"
CustomLog "logs/dummy-host.127.0.0.1-access.log" common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host2.127.0.0.1
DocumentRoot "D:/dev/Apache2.2/docs/dummy-host2.127.0.0.1"
ServerName dummy-host2.127.0.0.1
ErrorLog "logs/dummy-host2.127.0.0.1-error.log"
CustomLog "logs/dummy-host2.127.0.0.1-access.log" common
</VirtualHost>
下一篇:探讨如何在PHP开启gzip页面压缩实例