您现在的位置是:首页 > 技术交流技术交流

ubuntu apache2.4的一些变化

2017-11-29【技术交流】1540 人已围观

简介apache2对default.conf有更严格的要求了. apachehttpdEitherallOptio...

apache2对default.conf有更严格的要求了.

apache httpd Either all Options must start with + or -, or no Option may.

apache httpd 2.2的配置放到apache httpd 2.4下就出现了这个错误,出现错误行的内容为:
Options -Indexes FollowSymLinks
出错提示:
Either all Options must start with + or -, or no Option may.
解决方法:
Options -Indexes +FollowSymLinks

apache2.4的403要如下处理:
<Directory />
AllowOverride none
#Require all denied
Require all granted
</Directory>

将Require all denied 改为 Require all granted


关注宁波网站建设博客,更多精彩分享,敬请期待!
 

Tags:

很赞哦! ()

文章评论

点击排行

本站推荐

站点信息