svn commit: r1934879 - httpd/httpd/branches/2.4.x/docs/manual/rewrite
| Newsgroups | gmane.comp.apache.cvs |
|---|---|
| Message-ID | <178040501364.1919379.12393930601593862737@svn03-he-fi> |
Author: rbowen
Date: Tue Jun 2 12:56:53 2026
New Revision: 1934879
Log:
Fix RedirectMatch regex in ACME exemption recipe (bug 70084)
The negative lookahead (?!...) is zero-width and non-capturing, so
the original pattern matched only the leading slash and \$1 was
undefined. Add a capturing group (.*)$ after the lookahead so that
\$1 contains the remainder of the URL-path.
Same as trunk r1934878.
Modified:
httpd/httpd/branches/2.4.x/docs/manual/rewrite/remapping.xml
Modified: httpd/httpd/branches/2.4.x/docs/manual/rewrite/remapping.xml
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/rewrite/remapping.xml Tue Jun 2 12:56:14 2026 (r1934878)
+++ httpd/httpd/branches/2.4.x/docs/manual/rewrite/remapping.xml Tue Jun 2 12:56:53 2026 (r1934879)
@@ -221,7 +221,7 @@ RewriteRule "^(.*)" "https://%{SERVER_NA
</Directory>
# Everything else goes to HTTPS
- RedirectMatch permanent "^/(?!\.well-known/acme-challenge/)" "https://www.example.com/$1"
+ RedirectMatch permanent "^/(?!\.well-known/acme-challenge/)(.*)$" "https://www.example.com/$1"
</VirtualHost>
</highlight>