给apache 设置虚拟域名(windows)

来源:互联网 发布:淘宝现货指的是什么 编辑:程序博客网 时间:2024/05/01 15:08

修改C:\WINDOWS\system32\drivers\etc\hosts 文件
127.0.0.1       localhost
127.0.0.1   xiaocai.name

 

修改apache中的httpd.conf文件
<VirtualHost *:80>
DocumentRoot "D:\wamp\www\tset2.1\webapps"
ServerName xiaocai.name
ServerAlias xiaocai.name
</Virtualhost>

原创粉丝点击