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

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

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


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



    如果我们想将WEB服务器的地址修改到其他盘里,例如D:\MyWEB  改如何弄呢?


    步骤如下:


    1、打开Apache的配置文件,httpd.conf 找到下面的代码修改成我们的新WEB服务器地址。



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



    3、修改 wampmanager.ini 中的代码,将其修改为我们的新WEB服务器地址。



    4、修改 wampmanager.tpl 中的代码,将其修改为我们的新WEB服务器地址。



    5、退出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>

posted @ 2015-05-04 09:40  染指彷徨  阅读(569)  评论(0编辑  收藏  举报