欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

深入apache host的配置详解

程序员文章站 2022-04-08 15:57:18
    serveradmin webmaster@dummy-host.127.0.0.1&...
<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>