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. python - 搜索大文件(20G左右)2. javascript - weex和node,js到底是怎样一个关系呢?3. css - 百分比min-height的一个问题4. angular.js - ng-grid 和tabset一起用时,grid width默认特别小5. node.js - 急急急!node request如何获取响应中cookie的值呢?6. 用tp5框架写sql语句7. Android-studio导入.so库问题?8. angular.js - JS或者angular如何写递归呢?9. javascript - 小米浏览器中,图片导致fixed定位的元素无法显示10. mysql中的join on查询语句的on能否改为where
