.htaccess htaccess错误:不允许在<;中使用Require;档案>;上下文
我正试图通过以下方式升级到phpbb3.2的最新版本,但在尝试访问/install目录时,我在apache 2.4错误日志中遇到了500个内部服务器错误和以下错误:.htaccess htaccess错误:不允许在<;中使用Require;档案>;上下文,.htaccess,phpbb3,.htaccess,Phpbb3,我正试图通过以下方式升级到phpbb3.2的最新版本,但在尝试访问/install目录时,我在apache 2.4错误日志中遇到了500个内部服务器错误和以下错误: C:/website/forum/.htaccess: Require not allowed in <Files> context C:/website/forum/.htaccess:上下文中不允许使用Require 我试着在谷歌上搜索“requirenotallowinfiles-context”错误,但实际上
C:/website/forum/.htaccess: Require not allowed in <Files> context
C:/website/forum/.htaccess:上下文中不允许使用Require
我试着在谷歌上搜索“requirenotallowinfiles-context”错误,但实际上没有结果。必须是罕见的或新引入的错误
所讨论的htaccess包含以下内容:
<IfModule mod_version.c>
<IfVersion < 2.4>
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
</IfVersion>
<IfVersion >= 2.4>
<Files "config.php">
Require all denied
</Files>
<Files "common.php">
Require all denied
</Files>
</IfVersion>
</IfModule>
<IfModule !mod_version.c>
<IfModule !mod_authz_core.c>
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
</IfModule>
<IfModule mod_authz_core.c>
<Files "config.php">
Require all denied
</Files>
<Files "common.php">
Require all denied
</Files>
</IfModule>
</IfModule>
命令允许,拒绝
全盘否定
命令允许,拒绝
全盘否定
= 2.4>
要求全部拒绝
要求全部拒绝
命令允许,拒绝
全盘否定
命令允许,拒绝
全盘否定
要求全部拒绝
要求全部拒绝
你知道怎么解决这个问题吗
编辑:我使用了指南中提到的命令作为安装目录步骤的替代,并完成了指南,但即使访问根论坛url也会出现相同的错误,因此此问题与“install/”无关说明。AllowOverride httpd.conf指令要求启用AuthConfig选项,以便在htaccess文件中使用所需的指令
在将旧的Bugzilla 5.0.6实例从Apache 2.2迁移到Apache 2.4时发现了类似的问题。将
AuthConfig
添加到Apache2.4配置中的AllowOverride
指令中修复了该问题。