美文网首页
apache 多站点配置

apache 多站点配置

作者: 陌北v1 | 来源:发表于2018-01-17 10:58 被阅读0次
window环境 wamp 配置
1.在“httpd.conf”文件中查找:Include conf/extra/httpd-vhosts.conf 去掉前面的注释#。
2.在 C:\Windows\System32\drivers\etc\hosts文件底部添加

127.0.0.1 hello.com

3.httpd-vhosts.conf文件底部添加网站配置

<VirtualHost *:80>
DocumentRoot "d:/wamp/www/hello/public"
ServerName hello.com
</VirtualHost>

4.重启apache 即可

相关文章

网友评论

      本文标题:apache 多站点配置

      本文链接:https://www.haomeiwen.com/subject/adbyoxtx.html