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>
加入文件末尾即可通过修改apache改变域名指向
最新推荐文章于 2020-12-24 07:38:20 发布
7085

被折叠的 条评论
为什么被折叠?



