summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorRuediger Pluem <rpluem@apache.org>2023-01-04 11:36:19 +0000
committerRuediger Pluem <rpluem@apache.org>2023-01-04 11:36:19 +0000
commit4cfcf6d610e06ae5ac6a3fccdb99825370ff4a67 (patch)
tree8365265c0c5e682b750367b85858c8b4b41daabf /server
parentd0e92ce99ce1489b9a3a7b9e47ecdff48be8f600 (diff)
downloadhttpd-4cfcf6d610e06ae5ac6a3fccdb99825370ff4a67.tar.gz
* Log URI causing to exceed the limit to ease analysis
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1906380 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server')
-rw-r--r--server/core.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/server/core.c b/server/core.c
index 13c60e8ca1..75b25ac4e8 100644
--- a/server/core.c
+++ b/server/core.c
@@ -4125,12 +4125,15 @@ AP_DECLARE(int) ap_is_recursion_limit_exceeded(const request_rec *r)
if (top->prev) {
if (++redirects >= rlimit) {
/* uuh, too much. */
+ /* As we check before a new internal redirect, top->prev->uri
+ * should be the original request causing this.
+ */
ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(00124)
- "Request exceeded the limit of %d internal "
+ "Request (%s) exceeded the limit of %d internal "
"redirects due to probable configuration error. "
"Use 'LimitInternalRecursion' to increase the "
"limit if necessary. Use 'LogLevel debug' to get "
- "a backtrace.", rlimit);
+ "a backtrace.", top->prev->uri, rlimit);
/* post backtrace */
log_backtrace(r);
@@ -4145,12 +4148,15 @@ AP_DECLARE(int) ap_is_recursion_limit_exceeded(const request_rec *r)
if (!top->prev && top->main) {
if (++subreqs >= slimit) {
/* uuh, too much. */
+ /* As we check before a new subrequest, top->main->uri should
+ * be the original request causing this.
+ */
ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(00125)
- "Request exceeded the limit of %d subrequest "
+ "Request (%s) exceeded the limit of %d subrequest "
"nesting levels due to probable configuration "
"error. Use 'LimitInternalRecursion' to increase "
"the limit if necessary. Use 'LogLevel debug' to "
- "get a backtrace.", slimit);
+ "get a backtrace.", top->main->uri, slimit);
/* post backtrace */
log_backtrace(r);