apache虚拟主机

<VirtualHost *:80>

    ServerAdmin [email protected]

    DocumentRoot "e:\wamp\www\yf_manage"

    ServerName "manage.doname.com"

    ServerAlias 

</VirtualHost>

 

<VirtualHost *:80>

    ServerAdmin [email protected]

    DocumentRoot "e:\wamp\www"

    ServerName localhost

    ServerAlias 

</VirtualHost>

有域名的配置要写在前面

你可能感兴趣的:(apache)