当我在apache 2.4 Web服务器配置中使用“FallbackResource”时,它显示错误“AH00125:请求超出10个子请求嵌套级别的限制”。

请提供一些有关如何解决此问题的帮助。
是否指定网址“http://localhost/bv-host/plusRoot/plus/fiets”,并希望将其转发到默认的index.html:“/bv-host/plusRoot/plus/index.html”

我启用了调试日志记录。模式重写已禁用。如果删除FallbackResource行,则不会看到此错误,而是会出现404错误。

我在Mac上安装了默认的2.4版本,并添加了以下配置:

FallbackResource /bv-host/plusRoot/plus/index.html;
Alias /bv-host/plusRoot "/Users/ed/Develop/Projecten/Web”

就是这样,调试日志记录片段:
[client ::1:57840] mod_hfs_apple: Allowing access with matching directory. filename = /Users/ed/Develop/Projecten/Web/plus/index.html;
AH00125: Request exceeded the limit of 10 subrequest nesting levels due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[client ::1:57840] AH00121: r->uri = /bv-host/plusRoot/plus/index.html;
[client ::1:57840] AH00123: subrequested from r->uri = /bv-host/plusRoot/plus/index.html;
[client ::1:57840] AH00123: subrequested from r->uri = /bv-host/plusRoot/plus/index.html;
[client ::1:57840] AH00123: subrequested from r->uri = /bv-host/plusRoot/plus/index.html;
[client ::1:57840] AH00123: subrequested from r->uri = /bv-host/plusRoot/plus/index.html;
[client ::1:57840] AH00123: subrequested from r->uri = /bv-host/plusRoot/plus/index.html;
[client ::1:57840] AH00123: subrequested from r->uri = /bv-host/plusRoot/plus/index.html;
[client ::1:57840] AH00123: subrequested from r->uri = /bv-host/plusRoot/plus/index.html;
[client ::1:57840] AH00123: subrequested from r->uri = /bv-host/plusRoot/plus/index.html;
[client ::1:57840] AH00123: subrequested from r->uri = /bv-host/plusRoot/plus/index.html;
[client ::1:57840] AH00123: subrequested from r->uri = /bv-host/plusRoot/plus/fiets

最佳答案

请注意,如果FallbackResource路径不是绝对路径,也会出现此错误。例如:

FallbackResource index.php

将在任何第二级请求上失败:/foo/bar将失败,因为它将尝试回退到/foo/index.php。因此,您需要指定根目录:
FallbackResource /index.php

关于Apache Web服务器: AH00125: Request exceeded the limit of 10 subrequest with FallbackResource,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/33477428/

10-11 22:27