https://bz.apache.org/bugzilla/show_bug.cgi?id=66017
Bug ID: 66017 Summary: RewriteRule rules are ignores Product: Apache httpd-2 Version: 2.4.53 Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P2 Component: mod_rewrite Assignee: bugs@httpd.apache.org Reporter: sites+apa...@mail.immae.eu Target Milestone: --- Created attachment 38251 --> https://bz.apache.org/bugzilla/attachment.cgi?id=38251&action=edit routing log This snippet used to work fine in 2.4.43, and now fails in 2.4.53: ``` RewriteEngine On RewriteRule ^/foo/bar/(.+)$ unix:///some/path.sock|http://example.org/foo/bar/$1 [P,NE,QSA,L] RewriteRule ^/foo/bar/$ unix:///some/path.sock|ws://example.org/ [P,NE,QSA,L] ProxyPass / unix:///some/different_path.sock|http://example.org/ ProxyPassReverse / unix:////some/different_path.sock|http://example.org/ ``` Now: - the websocket is still correctly honored - a query to http://example.org/foo/bar/baz goes through the ProxyPass entry, in spite of the logs saying otherwise (see attached a log with `LogLevel alert rewrite:trace3`) - Commenting out the ProxyPass line makes things work again for the /foo/bar namespace - Workaround: replacing the ProxyPass with the equivalent RewriteRule ``` RewriteRule ^/(.*)$ unix:///some/different_path.sock|http://example.org/$1 [P,NE,QSA,L] ``` solves the issue, but nothing in the documentation says that RewriteRule’s and ProxyPass’es are incompatible. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org For additional commands, e-mail: bugs-h...@httpd.apache.org