https://bz.apache.org/bugzilla/show_bug.cgi?id=58467
Techiq <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #7 from Techiq <[email protected]> --- Comment on attachment 35617 --> https://bz.apache.org/bugzilla/attachment.cgi?id=35617 Candidate fix Apache 2.4.XX example which will produce a warning: RewriteRule ^/path/(foo|bar)/(.*)$ - [E=mypath:$1] <LocationMatch "/path/(foo|bar)/.*"> SetOutputFilter proxy-html ProxyHTMLInterp On ProxyHTMLURLMap ^/a/path/to/change/(.*)$ /newpath/${mypath}/images/$1 ecRiLV </LocationMatch> This is how the documentation of proxy_html is telling us to use environment variables. Syntax Check or Startup Warning will be the following: [Tue Sep 29 18:30:08.800644 2015] [core:warn] [pid 3114:tid 140660994774912] AH00111: Config variable ${mypath} is not defined In my opinion the config should be written since Apache 2.4 like this as the notation of environmental variables has changed: RewriteRule ^/path/(foo|bar)/(.*)$ - [E=mypath:$1] <LocationMatch "/path/(foo|bar)/.*"> SetOutputFilter proxy-html ProxyHTMLInterp On ProxyHTMLURLMap ^/a/path/to/change/(.*)$ /newpath/%{ENV:mypath}/images/$1 ecRiLV </LocationMatch> But if I use it this way, the replacement of the variable is no longer working, it writes down the url encoded representation of it into the path: %25%7BENV%3Amypath%7D Conclusion: Either the warning should be removed here or the way of noting variables should be changed to comply with Apache 2.4 envir -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
