博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Apache - 403错误
阅读量:7069 次
发布时间:2019-06-28

本文共 451 字,大约阅读时间需要 1 分钟。

1.1.1  现象

安装完毕后,访问http://localhost:8080/,出现错误:HTTP 错误 403 - 禁止访问,即403 ForbiddenYou don't have permission to access / on this server.

1.1.2  原因

马上打开apache的配置文件httpd.conf,逐行检查。在大约快一半的地方有以下这段代码:

<Directory />

    Options FollowSymLinks

    AllowOverride None

    Order deny,allow

    Deny from all

</Directory>

这里的“Deny from all”已经拒绝了一切连接。

1.1.3  解决

修改上述参数

<Directory />

    Options FollowSymLinks

    AllowOverride None

    Order deny,allow

    Allow from all

</Directory>

重启Apache,问题解决。

转载地址:http://qaqll.baihongyu.com/

你可能感兴趣的文章
org.hibernate.AssertionFailure: null id in xxx (don't flush the Session after an exception occurs)
查看>>
我的友情链接
查看>>
Android全局对话框
查看>>
awstats 分析nginx 日志
查看>>
给zabbix添加短信、微信、邮件报警
查看>>
MPChart 使用参考博客
查看>>
java: command not found
查看>>
单机上使用git#180804
查看>>
nginx+tomcat负载均衡
查看>>
php-编译安装
查看>>
感谢2011
查看>>
power shell 远程连接
查看>>
你的灯还亮着吗
查看>>
android手机在slackware linux上的调试
查看>>
mysql性能优化配置
查看>>
JavaScript继承方式详解
查看>>
解决win7旗舰版无法打开微软论坛
查看>>
烂泥:高负载均衡学习haproxy之安装与配置
查看>>
Web.config配置文件详解(新手必看)<转>
查看>>
【转】shell编程:数学运算
查看>>