wamp虚拟主机配置

 时间:2026-02-16 19:20:17

1、(第一次配置的时候才配置)

1.找到编辑httpd.conf,查找Include conf/extra/httpd-vhosts.conf,把前面注释符号“#”删掉。

2、2步配置

2.找到C:Windows/System32/drivers/etc/hosts 添加 127.0.0.1blog.com

3、3.配置wamp/apache/conf/extra/httpd-vhosts-conf

保存虚拟主机:填上你要配置的细节,比如我的c:/wamp/www/bolgg/web/

和servername也要

例:

<VirtualHost *:80>

ServerAdmin webmaster@dummy-host2.example.com

DocumentRoot "c:/wamp/www/blogg/web/"

ServerName blogg.com

ErrorLog "logs/dummy-host2.example.com-error.log"

CustomLog "logs/dummy-host2.example.com-access.log" common

</VirtualHost>

--------------------------------

4、之后记得重新启动服务器哦!

  • wamp配置多站点
  • 虚拟主机怎么用
  • php 关于wamp集成环境配置
  • 如何在 wamp 环境下配置 ssl
  • 怎么配置wamp下mysql的编码
  • 热门搜索
    北京户口有什么好处 服务密码是什么 什么烟最贵 喝柠檬水有什么好处 有限公司是什么意思 你也不必牵强再说爱我是什么歌 什么是智齿 花中君子指的是什么 什么是定语 疝气是什么病