通过修改apache改变域名指向

来源:互联网 发布:php中连接符 编辑:程序博客网 时间:2024/05/29 09:15
    1.修改文件C:\wamp\bin\apache\apache2.2.8\conf\httpd.conf    将Include conf/extra/httpd-vhosts.conf前面的“#”去掉    2.修改文件C:\wamp\bin\apache\apache2.2.8\conf\extra\httpd-vhosts.conf    将 <VirtualHost *:80>    ServerAdmin webmaster@leadsun.com    DocumentRoot "D:/website/sundea.com"    //域名www.sundea.com该文件    ServerName sundea.com    ServerAlias www.sundea.com    ErrorLog logs/sundea.com-error_log    CustomLog logs/sundea.com-access_log common    </VirtualHost>    加入文件末尾即可

   
0 0