httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 52207] New: Upgrade apache version from 2.0.59 to 2.2.12 or above result URL redirection error
Date Fri, 18 Nov 2011 08:16:47 GMT

             Bug #: 52207
           Summary: Upgrade apache version from 2.0.59 to 2.2.12 or above
                    result URL redirection error
           Product: Apache httpd-2
           Version: 2.2.21
          Platform: PC
            Status: NEW
          Severity: major
          Priority: P2
         Component: mod_alias
    Classification: Unclassified

URL: under Load Balance, apache is running both 80 and 1701
We have the redirect rule: RedirectMatch ^/[\/]?$ /redirect/redirect? and we
expect to get:
However it actually gives back:
1701 is the real server port and it should not show up here.

After workaround in different apache version, we found the issue can be
replicated in 2.2.12 and above versions. We also found the issue is in
modules/mapper/mod_alias.c and we located at the following codes:
            if (ret[0] == '/') {

                ret = ap_construct_url(r->pool, ret, r);
                ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r,
                              "incomplete redirection target of '%s' for "
                              "URI '%s' modified to '%s'",
                              orig_target, r->uri, ret);

If we remove this code and recompile apache, apache 2.2.12 or above versions
will work in our environment.
I don't know why others do not report the issue, but we are using Cisco ACE as
a load balancer, and we know current version 2.0.59 works well. 

Here is the list we tested:

Works                   2.0.59 (in use) 
Works                   2.0.64 
Works                   2.2.3
Works                   2.2.11
Issue                     2.2.12 (need mod_alias.c update, verified)
Issue                     2.2.13 (need mod_alias.c update)
Issue                     2.2.15 (need mod_alias.c update)
Issue                     2.2.19 (need mod_alias.c update)
Issue                     2.2.21 (need mod_alias.c update, verified)
Issue                     2.3.15 (need mod_alias.c update)

Please help on this special case and we want to know:
1.) what the exactly reason we have these pieces of code? what use case?
2.) is it an apache redirection issue or ACE has issue in forwarding?
3.) if it is actually a bug, can we fix it in next release?

Thanks a lot!


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