改变域名,php

C:\WINDOWS\system32\drivers\etc     ---    hosts    

127.0.0.1       buzhai.com

C:\wamp\bin\apache\apache2.2.22\conf\extra   ---  httpd-vhosts.conf  

<VirtualHost *:80>

    ServerAdmin webmaster@dummy-host2.example.com
    DocumentRoot "c:/Apache2/docs/dummy-host2.example.com"
    ServerName dummy-host2.example.com
    ErrorLog "logs/dummy-host2.example.com-error.log"
    CustomLog "logs/dummy-host2.example.com-access.log" common
  </VirtualHost>

 

C:\wamp\bin\apache\apache2.2.22\conf   ---   httpd.conf

  

# Virtual hosts
  Include conf/extra/httpd-vhosts.conf

 

posted @ 2013-10-18 10:23  海边菩提  阅读(146)  评论(1编辑  收藏  举报