https://bz.apache.org/bugzilla/show_bug.cgi?id=69344
--- Comment #4 from Devendra <[email protected]> --- Hi Ruediger Pluem, As suggested, we removed '/' from the beginning of the RewriteRule, but 2.4.62 version is still adding an additional '/' at the beginning of the URL and that is failing. it is adding a root prefix with 2.4.62 version. That is not the case with 2.4.59 even we have explicitly set '/' at the beginning of the rewrite rule. Is there any way we can remove the root prefix with an additional rewriterule or any other fix we can try. Please suggest. Below are my Rewrite rules: RewriteMap lowercase int:tolower RewriteMap map-file txt:/prod/app/tv/dev_tv-launchpad_1.0.1_a/htdocs/maps/tv.dev.map RewriteRule ^/maps/ - [PT,L] #TEMPLATE? RewriteCond %{REQUEST_URI} ^/tv/(.*)/? [NC] RewriteRule ^/ ${map-file:${lowercase:%1}|--state--} #TEMPLATE? # /svp/STATE/AU RewriteCond %{REQUEST_URI} ^/tv/((([^/]+)/)?.*)/? [NC] RewriteRule ^--state-- ${map-file:${lowercase:%3}|--default--} #TEMPLATE? RewriteCond %{REQUEST_URI} ^/(tv)/ [NC] RewriteRule ^(.*) --proto--$1 [C] RewriteRule ^(--proto--)/--default-- $1/${map-file:default|--error--} #TEMPLATE? #rewrite entire datacenter if in map eg, az-site1 ->sv-site1 RewriteRule ^(--proto--)/(.*)([0-9]\.glb.wellsfargo.net)/? $1/${map-file:${lowercase:$2}|$2}$3 Log traces with version 2.4.62 as below. init rewrite engine with requested uri /tv/qa2 applying pattern '^/maps/' to uri '/tv/qa2' applying pattern '^/' to uri '/tv/qa2' RewriteCond: input='/tv/qa2' pattern='^/tv/(.*)/?' [NC] => matched map lookup OK: map=lowercase key=qa2 -> val=qa2 cache lookup FAILED, forcing new map lookup map lookup OK: map=map-file[txt] key=qa2 -> val=tv-qa-wec-2-vip.hostname.com rewrite '/tv/qa2' -> 'tv-qa-wec-2-vip.hostname.com' add root prefix: tv-qa-wec-2-vip.hostname.com -> /tv-qa-wec-2-vip.hostname.com setting lastsub to rule with output ${map-file:${lowercase:%1}|--state--} applying pattern '^--state--' to uri '/tv-qa-wec-2-vip.hostname.com' applying pattern '^(.*)' to uri '/tv-qa-wec-2-vip.hostname.com' RewriteCond: input='/tv/qa2' pattern='^/(tv)/' [NC] => matched rewrite '/tv-qa-wec-2-vip.hostname.com' -> '--proto--/tv-qa-wec-2-vip.hostname.com' add root prefix: --proto--/tv-qa-wec-2-vip.hostname.com -> /--proto--/tv-qa-wec-2-vip.hostname.com setting lastsub to rule with output --proto--$1 applying pattern '^(--proto--)/--default--' to uri '/--proto--/tv-qa-wec-2-vip.hostname.com' applying pattern '^(--proto--)/(.*)([0-9]\\.glb.hostname.net)/?' to uri '/--proto--/tv-qa-wec-2-vip.hostname.com' applying pattern '^--proto--/--error--' to uri '/--proto--/tv-qa-wec-2-vip.hostname.com' applying pattern '^(--proto--/.*)--default--' to uri '/--proto--/tv-qa-wec-2-vip.hostname.com' applying pattern '^(--proto--/.*)' to uri '/--proto--/tv-qa-wec-2-vip.hostname.com' applying pattern '^--proto--/(https?://.*)' to uri '/--proto--/tv-qa-wec-2-vip.hostname.com' applying pattern '^--proto--/(.*)' to uri '/--proto--/tv-qa-wec-2-vip.hostname.com' applying pattern '^/(.*)' to uri '/--proto--/tv-qa-wec-2-vip.hostname.com' rewrite '/--proto--/tv-qa-wec-2-vip.hostname.com' -> '/launchpad.html' setting lastsub to rule with output /launchpad.html forcing '/launchpad.html' to get passed through to next API URI-to-filename handler -- 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]
