当我在apache 2.4 web服务器configuration中使用“FallbackResource”时,它显示错误“AH00125:请求超出了10个子请求嵌套级别的限制”。
请一些帮助如何解决这个问题。 指定URL“ http:// localhost / bv-host / plusRoot / plus / fiets ”,并希望将其转发到默认的index.html:“ /bv-host/plusRoot/plus/ index.html”
我启用了debugging日志logging。 模式重写被禁用。 如果我删除FallbackResource行,我没有看到这个错误,而是一个例外的404错误。
我有一个默认的2.4安装在我的Mac与添加以下configuration:
FallbackResource /bv-host/plusRoot/plus/index.html; Alias /bv-host/plusRoot "/Users/ed/Develop/Projecten/Web”
就是这样,debugging日志片段:
[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
我一直在类似的麻烦设置子文件夹中的Silex应用程序。 我正在使用一个FallbackResource index.php
与你相同的结果。
结束了使用经典的重写检查。
RewriteEngine On #RewriteBase /path/to/app RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [QSA,L]
我也有这个问题,并找到了解决办法。
在我的情况下,这是因为页面请求一个资源(这是一个CSS文件),这是没有放在良好的目录。
<link href="somewhere_bad_directory/font-awesome.min.css" rel="stylesheet" type="text/css">
然后FallbackResource被调用十次,并没有提供资源,因此错误。
解决方案:在目录中使用“FallbackResource”时,如果出现此错误“AH00125:请求超出了10个子请求嵌套级别的限制”,请仔细检查页面是否放错了资源。