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 2008/01/09 09:12:37 UTC
DO NOT REPLY [Bug 44189] New: - noncanon argument is not recognized in 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=44189>.
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=44189
Summary: noncanon argument is not recognized in ProxyPass
directive
Product: Apache httpd-2
Version: 2.2.6
Platform: Other
OS/Version: Windows XP
Status: NEW
Severity: blocker
Priority: P2
Component: mod_proxy
AssignedTo: bugs@httpd.apache.org
ReportedBy: chatterjeed@lycos.com
I have set up an apache reverse proxy in my windows machine to load balance 2
backend servers. The server host some web application on tomcat 4 and 5.
This web application is basically a servlet and is accessed as follows
http://<servername>:<port>/webapp/MyServlet without a trailing "/" at the end.
I have the following load balancer set up in my httpd.conf -
ProxyPass /app balancer://mycluster
ProxyPassreverse /app balancer://mycluster
ProxyPassreverse /app http://server1/webapp/MyServlet
ProxyPassreverse /app http://server2/webapp/MyServlet
<Proxy balancer://mycluster>
BalancerMember http://server1/webapp/Myservlet loadfactor=1
BalancerMember http://server2/webapp/MyServlet loadfactor=1
proxySet lbmethod=byrequests
</Proxy>
Since mod_proxy rewrites the URL as http://server1/webapp/Myservlet/,
I am getting "HTTP Status 403 - directory listings are not allowed" error.
As per mod_proxy documentation, I tried the followin option to stop
canonicalisation
ProxyPass /app balancer://mycluster nocanon
but the httpd doesn't recognize the option -
D:\apache\Apache2\bin>httpd.exe
Syntax error on line 513 of D:/apache/Apache2/conf/httpd.conf:
Invalid ProxyPass|ProxyPassMatch parameter. Parameter must be in the
form 'key=value'.
Later on I checked the 2.2.6 source code and found that there is no code to
recognize the "nocanon" keyword.
Since I am not able to acces my application via the load balancer is there any
quick workaround? mod-rewrite ?
--
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 44189] - noncanon argument is not recognized in 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=44189>.
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=44189
------- Additional Comments From chatterjeed@lycos.com 2008-01-09 06:53 -------
(In reply to comment #1)
> nocanon is available in 2.2.7 and later. I guess you were reading the
> 2.2-current documentation.
Hi Nick,
I have installed the 2.2.7 windiws binary (download from www.apachelounge.com).
However, my problem is still not resolved.
If I use the nocanon keyword as follows
ProxyPass /app balancer://mycluster nocanon
it is accepting the syntax unlike 2.2.6. But that doesn't solve the problem
as "/" is appended to the worker URL.
And if I give
<Proxy balancer://mycluster>
BalancerMember http://server1/webapp/Myservlet loadfactor=1 nocanon
BalancerMember http://server2/webapp/MyServlet loadfactor=1
proxySet lbmethod=byrequests
</Proxy>
I get the following error
D:\apache\apache2.2.7\bin>httpd.exe
Syntax error on line 513 of D:/apache/apache2.2.7/conf/httpd.conf:
BalancerMember can not have a balancer name when defined in a location.
I set the loglevel to debug and it shows mod_proxy_balancer
rewites my url from http://server1/webapp/Myservlet
to http://server1/webapp/Myservlet/.
Any solution to this problem?
Thanks for your help.
--
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 44189] - noncanon argument is not recognized in 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=44189>.
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=44189
nick@webthing.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Additional Comments From nick@webthing.com 2008-01-09 04:18 -------
nocanon is available in 2.2.7 and later. I guess you were reading the
2.2-current documentation.
--
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 44189] - noncanon argument is not recognized in 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=44189>.
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=44189
chatterjeed@lycos.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
------- Additional Comments From chatterjeed@lycos.com 2008-01-11 00:45 -------
I am reopening the bug since the fix for nocanon doesn't solve the problem,
when backend server URLs are used in BalancerMember directive.
--
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