You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2006/04/04 19:12:14 UTC
DO NOT REPLY [Bug 39203] New: - mod_proxy_balancer does not treat trailing slash like Proxypass directive
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=39203>.
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=39203
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
DO NOT REPLY [Bug 39203] - mod_proxy_balancer does not treat trailing slash like Proxypass directive
Posted by bu...@apache.org.
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=39203>.
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=39203
rpluem@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
------- Additional Comments From rpluem@apache.org 2006-04-04 21:17 -------
> ProxyPass /KenwoodAccess/ http://172.20.111.33:80/KenwoodAccess/
and
> ProxyPass /KenwoodAccess/ balancer://KWA_cluster lbmethod=byrequests
are different cases. In the first case you have a trailing slash at both ends in
the second case you do not have this.
> 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.
Please specify the request that leads to this error message.
Please set also the LogLevel to debug and attach the output of your error_log file.
--
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
DO NOT REPLY [Bug 39203] - mod_proxy_balancer does not treat trailing slash like Proxypass directive
Posted by bu...@apache.org.
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=39203>.
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=39203
robsiegen@googlemail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
URL| |http://httpd.apache.org/docs
| |/trunk/mod/mod_proxy.html#pr
| |oxypass
Status|RESOLVED |REOPENED
Component|mod_proxy_balancer |Documentation
Resolution|WONTFIX |
Version|2.2.0 |2.3-HEAD
------- Additional Comments From robsiegen@googlemail.com 2006-05-25 12:53 -------
(In reply to comment #4)
> ProxyPass / http://www.somewhere.com
>
> (it must be ProxyPass / http://www.somewhere.com/)
>
> So the problem is really a misconfiguration on the user side that I mark as a
> WONTFIX.
May be the manual should be updated, too, because three or four examples
provided under the ProxyPass directive are using such invalid syntax.
--
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
DO NOT REPLY [Bug 39203] - mod_proxy_balancer does not treat trailing slash like Proxypass directive
Posted by bu...@apache.org.
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=39203>.
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=39203
bobsiegen@googlemail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--
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
DO NOT REPLY [Bug 39203] - mod_proxy_balancer does not treat trailing slash like Proxypass directive
Posted by bu...@apache.org.
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=39203>.
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=39203
------- Additional Comments From rpluem@apache.org 2006-04-04 22:11 -------
*** Bug 39206 has been marked as a duplicate of this bug. ***
--
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
DO NOT REPLY [Bug 39203] - mod_proxy_balancer does not treat trailing slash like Proxypass directive
Posted by bu...@apache.org.
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=39203>.
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=39203
------- Additional Comments From rpluem@apache.org 2006-05-25 13:23 -------
(In reply to comment #5)
>
> May be the manual should be updated, too, because three or four examples
> provided under the ProxyPass directive are using such invalid syntax.
Ok, agreed, but strictly speaking only the balancer example is wrong.
ProxyPass /example http://backend.example.com
is correct again. The basic rule for this is:
If the left side of ProxyPass ends with a / the right side must also end with a
/. If the right side of ProxyPass ends with a / but the left side does not this
will cause // in the URL send to the backend which usually does not harm, but to
play safe both sides really should end in the same manner. Maybe an idea for a
sanity check that issues a warning to the error log during the configuration
parsing of the ProxyPass directives if this is not the case.
--
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
DO NOT REPLY [Bug 39203] - mod_proxy_balancer does not treat trailing slash like Proxypass directive
Posted by bu...@apache.org.
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=39203>.
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=39203
------- Additional Comments From rpluem@apache.org 2006-05-25 20:15 -------
I have added a note to the documentation regarding trailing slashes: r409455
(http://svn.apache.org/viewvc?rev=409455&view=rev)
--
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
DO NOT REPLY [Bug 39203] - mod_proxy_balancer does not treat trailing slash like Proxypass directive
Posted by bu...@apache.org.
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=39203>.
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=39203
------- Additional Comments From takezo@gmail.com 2006-05-18 22:12 -------
I had the same issue, and this does not necessarily mean that is not a bug but I
have at least discovered a workaround.
In my case, within a certain Virtual Host I pass all requests to the Load
Balancer. This received the same errors when configured as follows:
ProxyPass / balancer://cluster nofailover=On
ProxyPassReverse / balancer://cluster
<Proxy balancer://cluster>
BalancerMember ajp://10.0.1.102:8009
BalancerMember ajp://10.0.1.103:8009
</Proxy>
But works if the configuration is changed to this:
ProxyPass / balancer://cluster/ nofailover=On
ProxyPassReverse / balancer://cluster/
<Proxy balancer://cluster/>
BalancerMember ajp://10.0.1.102:8009/
BalancerMember ajp://10.0.1.103:8009/
</Proxy>
--
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
DO NOT REPLY [Bug 39203] - mod_proxy_balancer does not treat trailing slash like Proxypass directive
Posted by bu...@apache.org.
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=39203>.
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=39203
rpluem@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |RESOLVED
Resolution| |WONTFIX
------- Additional Comments From rpluem@apache.org 2006-05-25 12:30 -------
I agree that the error message is misleading, but this problem is not limited to
mod_proxy_balancer and the balancer scheme but also occurs with
ProxyPass / http://www.somewhere.com
(it must be ProxyPass / http://www.somewhere.com/)
So the problem is really a misconfiguration on the user side that I mark as a
WONTFIX.
--
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