Apache2.4.18 错误403
问题描述
1.背景:小弟菜鸟,想在公司局域网搭建web管理系统,但是在搭建环境时遇到问题百度1天都没百出来 啥,都是过期复制粘贴的答案。2.环境:安装环境:1)Win7Pro(32bit)中文(非虚拟机)2)Wampserver3.0.4(Server Software:Apache/2.4.18 (Win32) PHP/5.6.19 - Port defined for Apache: 80)3.问题描述:1)安装完wampserver后启动正常,通过localhos,本机ip,127.0.0.1都可以访问正常。但是我在局域网其它机器上访问服务会提示访问拒绝没有权限巴拉巴拉巴拉。。如下截图:
错误日志:
[authz_core:error] [pid 4544:tid 864] [client 192.168.221.122:49359] AH01630: client denied by server configuration: C:/wamp/www/favicon.ico[authz_core:error] [pid 4544:tid 856] [client 192.168.221.122:49363] AH01630: client denied by server configuration: C:/wamp/www/
2)出现上面问题让我这个菜鸟都市懵逼了,百度谷歌都没解决,大部分答案是修改http.conf目录访问权限,然后我也修改了,允许所有访问重启服务重启电脑,但是还是出现上面访问拒绝
DocumentRoot 'c:/wamp/www'<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 # # Controls who can get stuff from this server. ## onlineoffline tag - don’t remove# Require local Require all granted</Directory>
4.总结:折腾一天了,太累人了,求大神指点,感谢不尽
问题解答
回答1:这个问题也是搞了好半天。。。。。apache 2.4.18** 结果是:还需要修改 Virtual Hosts 文件在conf/extra/httpd-vhosts.conf !!!!!
<VirtualHost *:80>
ServerName localhostDocumentRoot d:/wamp/www<Directory 'd:/wamp/www/'> Options +Indexes +FollowSymLinks +MultiViews AllowOverride All #Require local Require all granted</Directory>
</VirtualHost>
回答2:把你机器上防火墙关了试试吧,在高级系统管理里面!
回答3:wampsever3菜单有了变化,put online/offline 功能需要开启,右击服务图片找到菜单选项,开启put online/offline 菜单然后put on line就可以在其他机器访问了,但是这个功能也是通过修改 httpd.conf文件将目录访问权限 Require local>Require all granted 但是手动修改就不行,不知道咋回事,有知道的大神指点下。
相关文章:
1. javascript - 手机网页上实现调用相册或者拍照或者录制短视频上传,有没有人有做过相关功能,求告知,项目用,急!!!2. java - springMVC 自动组装相关问题。3. html5 - 如何让H5页面在手机浏览器里和微信全屏显示4. html - 类似这样的弹层用什么插件写比较好?5. android - 类似于微信朋友圈图片这样的是在listview中嵌套gridview还是动态加入多个imageview呢?6. SublimeText3汉化版安装7. mysql优化 - mysql 多表联合查询,求一个效率最高的查询8. java - input file类型上传了一个文件,想计算一下上传文件的大小?9. html - 如何使用用户输入的数据去运行一个数学公式,最后怎么返回。10. css - 使用blur()滤镜为什么有透明的效果

网公网安备