对于web开发者来说,远程访问网站可以很方便的提高开发网站开发效率,那么在wamp环境下,默认只支持本地访问,那么如何访问开启远程网站访问呢?
开启方法:
wamp2.5(32bit)
集成环境版本(Apache : 2.4.9 MySQL : 5.6.17 PHP : 5.5.12 PHPMyAdmin : 4.1.14 SqlBuddy : 1.3.3 XDebug : 2.2.5)
1.在wamp安装环境中Apache的配置文件httpd.conf下,找到如下代码:
# onlineoffline tag - don't remove Require local
# onlineoffline tag - don't remove Require local Require ip 192.168.1
1.同上1)找到Apache配置文件httpd.conf下,如下代码:
<Directory "c:/wamp/www/"> Options Indexes FollowSymLinks AllowOverride all Order Deny,Allow Deny from all Allow from 127.0.0.1 </Directory>
Allow from all意味允许所有IP访问。
<Directory "c:/wamp/www/"> Options Indexes FollowSymLinks AllowOverride all Order Deny,Allow Deny from all Allow from 127.0.0.1 Allow from 192.168.1 </Directory>
原文地址:http://blog.csdn.net/chen_jint/article/details/40554297