wamp 2.5安装后修改默认www路径及解决403错误

这段时间开始折腾下Laravel,先安装了wamp 2.5,本人喜欢把路径设置到F:\Workspace下,因此修改了wamp的默认www路径,详细方法请参考BLOG(转自:http://blog.csdn.net/wxlhlh001/article/details/8235224)html

不少朋友都安装了WAMP,安装后,WAMP的默认服务器文件夹地址为C:\WAMP\www (按照默认安装后的地址)。


    此时,咱们点击“WWW目录地址”就会打开C:\WAMP\www 这么目录。
android



    若是咱们想将WEB服务器的地址修改到其余盘里,例如D:\MyWEB  改如何弄呢?


    步骤以下:


    一、打开Apache的配置文件,httpd.conf 找到下面的代码修改为咱们的新WEB服务器地址。
浏览器



    二、打开WAMP的安装目录,找到 wampmanager.ini 和 wampmanager.tpl 两个文件,用记事本打开。
ide



    三、修改 wampmanager.ini 中的代码,将其修改成咱们的新WEB服务器地址。
this



    四、修改 wampmanager.tpl 中的代码,将其修改成咱们的新WEB服务器地址。
.net



    五、退出WAMP,再重新启动WAMP  而后就能够了!!

 

www目录是修改好了,但是当访问localhost时出现了403 Forbidden错误,故又找了下修改apache2.4.9的403问题的方法,详细参考以下(转自:http://blog.163.com/qingshui1bei@yeah/blog/static/124078678201411214849498/)

用wamp搭建了个android的后台,经过本机浏览器访问成功,可是经过手机访问却失败,返回错误代码403。网上搜了一些答案,都不怎么清楚,有的还比较乱来。后来综合网上的,发现只改一处便可。

步骤以下:
1.打开apache 的httpd.conf文件
2.找到如下目录将红色背景的配置修改成绿色背景就能够了。

<Directory "D:/wamp/www/">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks

#
# 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

#
# Controls who can get stuff from this server.
#

# onlineoffline tag - don't remove
# Require local
Allow from all
Require all granted
</Directory>

相关文章
相关标签/搜索