解决wampserver3.0.4远程不能访问问题

2018-06-22 04:54:30来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折

在windows2008服务器上安装wampserver3.0.4集成环境,默认却是无法远程访问,如果要远程访问需要修改apache的配置文件httpd.conf,修改如下:

<Directory "D:/wamp64/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 -Indexs  +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
Require all granted
#
# Controls who can get stuff from this server.
#

# onlineoffline tag - don't remove
Require local
</Directory>

说明:

Options -Indexs  +FollowSymLinks  把'+Indexs'修改为'-Indexs'代表不允许访问文件目录;

Require all granted  此行是后来加上的,加上后就可以远程访问。

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:微信公众号开发之语音消息识别

下一篇:[moka同学笔记]yii2.0 advanced高级版 安装配置 与 rbac (Ⅰ)