wamp绑定域名

修改 D:\wamp\bin\apache\apache2.4.9\conf\extra\httpd-vhosts.conf,添加下面代码

 

<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot "e:/www/trjcn/trunk/www"
    ServerName 127.0.0.2
    ServerAlias 127.0.0.2
    ErrorLog "logs/dummy-host.example.com-error.log"
    CustomLog "logs/dummy-host.example.com-access.log" common
</VirtualHost>

<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot "e:/www/trjcn/trunk/www"
    ServerName www.dev.com
    ServerAlias www.dev.com
    ErrorLog "logs/dummy-host.example.com-error.log"
    CustomLog "logs/dummy-host.example.com-access.log" common
</VirtualHost>

 

你可能感兴趣的:(wamp绑定域名)