httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 48520] mod_substitute only process the first match
Date Fri, 22 Jan 2010 10:18:42 GMT

Pablo Martinez Schroder <> changed:

           What    |Removed                     |Added
             Status|NEEDINFO                    |NEW

--- Comment #4 from Pablo Martinez Schroder <> 2010-01-22 02:18:41
UTC ---
Adding the supplied test HTML to the docroot directory and this configuration
to the default httpd.conf in httpd-2.2.14 you should expect to see all the
links pointing to /scores/ but only the first one gets substituted.

<Location /test_sub/>
  AddOutputFilterByType SUBSTITUTE text/html
  Substitute "s|http://.*/merge/tsnform.aspx\?c=client-.*?&(.*)|/scores/?$1|i"
  Substitute "s|/merge/tsnform.aspx\?c=client-.*?&(.*)|/scores/?$1|i"
  Substitute "s|/merge/tsnform.aspx\?c=sportsnetwork&(.*)|/scores/?$1|i"
  Substitute "s|http://.*/fury/(.*)|/scores/resources/fury/$1|i"
  #Substitute "s|/xml/(.*)|/scores/resources/xml/$1|i"
  Substitute "s|/images/(.*)|/scores/resources/images/$1|i"
  RequestHeader   unset   Accept-Encoding


Applying the suggested patch or using httpd-2.2.11 shows the expected
behaviour: all the links are substituted.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message