盒子
盒子

wampserver2.5-apache2.4.9允许外部访问的配置

打开..\wamp\bin\apache\apache2.4.9\conf\httpd.conf配置文件,

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<Directory "c:/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
Require all granted #添加允许外部访问
#
# Controls who can get stuff from this server.
#
# onlineoffline tag - don't remove
# Require local #注释请求本机访问
</Directory>

按代码 22 29 行修改
重启服务,再访问下就可以了。

支持一下
走过的,路过的,请支持一下我 n(*≧▽≦*)n