httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 39206] New: - mod_proxy_balancer does not treat trailing slash like Proxypass directive
Date Tue, 04 Apr 2006 20:46:10 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39206>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39206

           Summary: mod_proxy_balancer does not treat trailing slash like
                    Proxypass directive
           Product: Apache httpd-2
           Version: 2.2.0
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Keywords: ErrorMessage
          Severity: normal
          Priority: P2
         Component: mod_proxy_balancer
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: cwang@kenwoodusa.com


Running httpd-2.2.0-1 on CentOS 4.3 (rebuilt source rpm package).  Found a bug
with mod_proxy_balancer module where it does not treat a URL the same as
mod_proxy module would.

Using Apache as a reverse proxy with mod_proxy module passing this directive to
a single backend server works just fine:

ProxyPass /KenwoodAccess/ http://172.20.111.33:80/KenwoodAccess/

This next example is a WORKING configuration for mod_proxy_balancer. No errors
are generated in Apache and passes to the backend servers:

ProxyPass /KenwoodAccess balancer://KWA_cluster lbmethod=byrequests
stickysession=JSESSIONID nofailover=off
<Proxy balancer://KWA_cluster>
        BalancerMember http://172.20.111.33:80/KenwoodAccess smax=15 loadfactor=1
        BalancerMember http://172.20.111.34:80/KenwoodAccess smax=15 loadfactor=1
        #BalancerMember http://test.kenwoodaccess.com/noworkers.html smax=15
loadfactor=80
</Proxy>

Where the bug happens:

ProxyPass /KenwoodAccess/ balancer://KWA_cluster lbmethod=byrequests
*NOTE: The trailing slash in the first option.

This will generate an error message in Apache logs:

[Mon Apr 03 17:04:55 2006] [warn] proxy: No protocol handler was valid for the
URL /site/images/buts/forgotpassword.gif. If you are using a DSO version of
mod_proxy, make sure the proxy submodules are included in the configuration
using LoadModule.

This error message seems to be misleading when passing options using the
trailing slash.  How I am interpreting it is mod_proxy_balancer doesn't want to
call on other mod_proxy submodules properly.

Googling shows that people resolved this Apache error message by adding
'LoadModule' for the submodules of mod_proxy (ie: mod_proxy_connect,
mod_proxy_http, etc.).  This is not the case with me, since Apache shows these
submodules as loaded:

httpd -M
 proxy_module (shared)
 proxy_connect_module (shared)
 proxy_ftp_module (shared)
 proxy_http_module (shared)
 proxy_ajp_module (shared)
 proxy_balancer_module (shared)

This has been troubleshooted down to trailing slashes as the culprit for
mod_proxy_balancer and mod_proxy Proxypass directive works just fine with
trailing slashes.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message