j Posted January 14, 2008 Share Posted January 14, 2008 Using apache 2.2.6 ---------- 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. How can the trailing slash added be avoided? Thanks, J Link to comment https://forums.phpfreaks.com/topic/85909-apache-adding-a-trailing-slash/ Share on other sites More sharing options...
madmax Posted January 14, 2008 Share Posted January 14, 2008 Never used mod_proxy so I am guessing however you could try appending the null-query operator "?" to the end of the redirection. I've had it work in mod_rewrites before. Guess??? ... ProxyPassreverse /app http://server1/webapp/MyServlet? Link to comment https://forums.phpfreaks.com/topic/85909-apache-adding-a-trailing-slash/#findComment-439291 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.