Jump to content

Apache adding a trailing slash


j

Recommended Posts

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

 

 

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.