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 - Django有哪些成功项目?2. dockerfile - [docker build image失败- npm install]3. apache - 想把之前写的单机版 windows 软件改成网络版,让每个用户可以注册并登录。类似 qq 的登陆,怎么架设服务器呢?4. docker-compose中volumes的问题5. java - 对于jsp技术,aspx技术的困惑6. javascript - [,null]是什么用法7. docker - 各位电脑上有多少个容器啊?容器一多,自己都搞混了,咋办呢?8. java - idea如何不显示.idea target这些文件夹9. docker-compose 为何找不到配置文件?10. apache - 怎么给localhost后面默认加上8080端口
