我有一个 woocommerce 网站。Apache error.log 中有一个递归错误:
[Mon Nov 02 17:04:58.723578 2015] [core:error] [pid 2922] [client 172.31.12.207:19044] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: https://gremyo.com/wp-content/themes/bishop/woocommerce/style.css
[Mon Nov 02 17:04:58.812460 2015] [core:error] [pid 2928] [client 172.31.12.207:19045] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: https://gremyo.com/wp-content/themes/bishop/woocommerce/style.css
[Mon Nov 02 17:13:58.112870 2015] [core:error] [pid 3100] [client 172.31.27.233:39991] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Mon Nov 02 17:13:58.430530 2015] [core:error] [pid 2905] [client 172.31.27.233:39992] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Mon Nov 02 17:23:23.530340 2015] [core:error] [pid 3205] [client 172.31.11.223:48080] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://gremyo.com/wp-signup.php?new=publisherweb
[Mon Nov 02 17:25:08.819153 2015] [core:error] [pid 3244] [client 172.31.27.233:40380] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: https://muyinteresante.gremyo.com/
我看到当 javascript 在单个产品页面中启动带有详细图像(referer...style.css)的窗口时发生错误。google-chrome 控制台记录了这些错误:
Failed to load resource: the server responded with a status of 500 (Internal Server Error) https://gremyo.com/wp-content/themes/bishop/fonts/WooCommerce.woff
Failed to load resource: the server responded with a status of 500 (Internal Server Error) https://gremyo.com/wp-content/themes/bishop/fonts/WooCommerce.ttf
我在 .htaccess 文件中发现了这个,与 chrome 错误有关。
<IfModule mod_headers.c>
<FilesMatch "\.(ttf|ttc|otf|eot|woff|font.css)$">
Header set Access-Control-Allow-Origin "*"
</FilesMatch>
</IfModule>
然而,该错误出现在网站的更多地方(我还没有确定是哪些地方)。
调查此问题的原因是,网站在缓存某些产品页面时无法正确加载 CSS。我使用 wp-super-cache 和 autoptimize 插件。
你有什么想法可以帮助我吗?
谢谢!
答案1
专注于 ”https://gremyo.com/wp-content/themes/bishop/fonts/WooCommerce.woff“请求。此请求未得到满足(错误 500),可能是递归错误的根源。
检查 themes/bishop/fonts/ 的内容,可能那里有一个 .htaccess 文件,或者在父目录中可能有另一个 .htaccess。
答案2
LogLevel debug
在配置文件中设置- 在日志中你应该看到哪个 URL 真正导致了问题
- 检查
.htaccess
与该 URL 相关的配置。
可能有用的链接:
- https://stackoverflow.com/questions/15850845/request-exceeded-the-limit-of-10-internal-redirects-due-to-probable-configuratio
- https://stackoverflow.com/questions/16490215/apache-htaccess-request-exceeded-the-limit-of-10-internal-redirects-due-to-pro
- https://stackoverflow.com/questions/28723981/request-exceeded-the-limit-of-10-internal-redirects-due-to-probable-configuratio