Forum Moderators: phranque

Message Too Old, No Replies

mod_proxy to fix redirect?

too many redirects is sucking up badwidth

         

driver

6:21 pm on Apr 11, 2005 (gmt 0)



At my job; we have a new application (j2ee) that is throwing redirects about 5 times for each normal page load. In other words, we have 5 302's for every 1 200. Sadly, there is nothing I can do to fix the application.

However, I can put a proxy between the application and the outside. I want to setup a proxy that will resolve all 302's internally so from the user/client point of view they only see "200"'s returned from our site and zero 302's.

Is this possible? or am I just screwed?

sitz

3:43 am on Apr 12, 2005 (gmt 0)

10+ Year Member



This probably won't help you; under Apache 1.3, for instance, mod_proxy will just pass the redirect back to the client (with the basic config I just set up, anyway). You could, of course, implement your own proxy system, using mod_perl or PHP; indeed, someone has likely already written such a beast. You could also look into Squid; I've no idea if it supports what you're after, but it's available from [squid-cache.org ].