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

相關文章
相關標籤/搜索