一、打开httpd-vhosts.conf文件
二、获取本机ip(假如我的本机ip为192.168.0.2)修改文件为
改前:
# Virtual Hosts
#
<VirtualHost *:80>
ServerName localhost
ServerAlias localhost
DocumentRoot d:/wamp/www
<Directory "d:/wamp/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
#
改后:
# Virtual Hosts
#
<VirtualHost *:80>
ServerName 192.168.0.2
DocumentRoot d:/wamp/www
<Directory "d:/wamp/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
#