https://issues.apache.org/bugzilla/show_bug.cgi?id=48520
Summary: mod_substitute only process the first match
Product: Apache httpd-2
Version: 2.2.12
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: mod_substitute
AssignedTo: [email protected]
ReportedBy: [email protected]
Since Apache 2.2.12 (up to 2.2.14) Apache mod_substitute only applies the
changes to first match. Using Apache 2.2.11 (compilation flags below) works as
expected: all the substitutions are applied, and using Apache 2.2.12 and more
modern only apply the change to the first match.
<Location /xml/>
ProxyPassReverse /
AddOutputFilterByType SUBSTITUTE text/html
Substitute "s|http://.*/something.asp\?c=client-.*?&(.*)|/otherthing/?$1|i"
Substitute "s|/bla/something.asp\?c=client-.*?&(.*)|/otherthing/?$1|i"
Substitute "s|/foo/something.asp\?c=sportsnetwork&(.*)|/scores/?$1|i"
RequestHeader unset Accept-Encoding
</Location>
Undoing change introduced in r755190
(http://svn.apache.org/viewvc?view=revision&revision=755190) to Apache 2.2.14
(patch attached) solves the issue.
configure parameters used for the compilation is described below (the same for
2.2.14, except for the prefix)
"./configure" \
"--prefix=/usr/local/apache-2.2.11" \
"--with-mpm=worker" \
"--enable-suexec" \
"--with-suexec" \
"--with-suexec-caller=apache" \
"--with-suexec-uidmin=500" \
"--with-suexec-gidmin=100" \
"--enable-pie" \
"--enable-mods-shared=all" \
"--enable-ssl" \
"--with-ssl" \
"--enable-distcache" \
"--enable-proxy" \
"--enable-cache" \
"--enable-mem-cache" \
"--enable-file-cache" \
"--enable-disk-cache" \
"--enable-ldap" \
"--enable-authnz-ldap" \
"--enable-cgid" \
"--enable-authn-anon" \
"--enable-authn-alias" \
"--disable-imagemap" \
"--with-mpm=prefork" \
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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]