wampserver2配置信息
一直觉得wampserver挺好用,重装了电脑后,似乎有些不一样了。从同事那里得知,新版的wampserver2需要一些新配置信息。下面我就贴出来。希望帮助到大家:<、p> 1. 允许局域网内的设备访问当前电脑,也就是解决wamp下面遇到 you don t have permission to access
1.在wamp\bin\apache\apache2.4.9\conf /下面打开httpd.conf. 第272行添加红色内容
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
#
AllowOverride all
Require all granted
# Controls who can get stuff from this server.
1. 打开localhost的时候,直接点击你的项目,运行
配置方法:
在wampserver 2.5之后,在首页的Your projects里面,链接的地址为http://直接加你的系统名称,会导致无法访问,正常的应该为http://localhost+你的系统名称,这时需要修改www文件夹下的index.php文件,在此文件夹内搜索projectContents,然后将http://改成http://localhost即可。