WAMP多站点调试

conf目录php

在 httpd.conf (个人目录是e:/wamp/bin/apache/Apache2.4.4/conf)文件中查找:Include conf/extra/httpd-vhosts.conf,去掉前面的注释#。
找到 IncludeOptional "e:/wamp/vhosts/*" (我安装的目录,倒数第二行) 在前面添加#,即#IncludeOptional "e:/wamp/vhosts/*"。html

conf/extra目录
httpd-vhosts.conf 添加站点:apache

<VirtualHost *:80>
DocumentRoot "e:\wamp\www\2\Public"
ServerName 127.0.0.2
DirectoryIndex index.php index.html
<Directory "e:\wamp\www\2\Public">
    Options Indexes FollowSymLinks Multiviews
    AllowOverride All
    Order Allow,Deny
    Allow from all
</Directory>
</Virtualhost>iview

相关文章
相关标签/搜索