wampserver 局域网内无法让其它电脑访问
2017-01-13 14:23
246 查看
打开Apache中的httpd.conf找到<Directory "D:/wamp/www/">这个标签,我的安装在D盘,C盘下的路径为<Directory "C:/wamp/www/">,
<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
Require all granted
#
# Controls who can get stuff from this server.
#
# onlineoffline tag - don't remove
#Require local
</Directory>
以上只是对本文件修改了两处,红色部分就是,添加 Require all granted,并且注释Require local最后wampserver重新启动服务,你的页面就可以在局域网中可以访问了。
<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
Require all granted
#
# Controls who can get stuff from this server.
#
# onlineoffline tag - don't remove
#Require local
</Directory>
以上只是对本文件修改了两处,红色部分就是,添加 Require all granted,并且注释Require local最后wampserver重新启动服务,你的页面就可以在局域网中可以访问了。
相关文章推荐
- wampserver 局域网内无法让其它电脑访问
- 宽带能连接上,接收不到数据或局域网内某台电脑的共享资源无法访问解决办法
- win7 iis7 局域网内其它用户无法访问的解决方法
- wampserver2.5版本怎么让局域网其他人可以访问
- LINUX下用apache或者nginx,本机可以访问,但局域网中的电脑无法访问
- 局域网中,其它电脑不能访问IIS服务器的解决方案
- samba配置好了后,自己无法访问,其他局域网的电脑能访问原因。
- 同一局域网内其它设备无法访问本地Apache问题的解决
- win7 iis7 局域网内其它计算机无法访问的解决方法
- 解决WAMP搭建PHP环境后后局域网其他机器无法访问的问题
- 局域网中无法访问其他电脑的解决办法
- Win7 IIS 部署网站,同局域网中电脑无法访问解决方案
- Win7 IIS 部署网站,同局域网中电脑无法访问解决方案
- 解决wampserver + laravel无法访问自定义路由
- DELPHI 访问其它电脑文件(局域网)
- 局域网内无法用administrator访问电脑,只能用guest
- 访问局域网某台电脑时提示:无法访问,你可能没有权限使用网络资源.的解决办法
- LINUX下用apache,本机可以访问,但局域网中的电脑无法访问
- apache2.4.12 局域网的其他电脑,无法访问我的apache
- 解决wampserver + laravel无法访问自定义路由