wamp虚拟主机配置
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、之后记得重新启动服务器哦!
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:176
阅读量:25
阅读量:179
阅读量:171
阅读量:118