[rt-users] Re: [Rt-devel] [PATCH] ProxyPass and 3.6.1 redirect function

Michael Brader michael at youramigo.com
Wed Sep 6 05:42:08 EDT 2006


Charlie Garrison writes:
 > Good afternoon,

G'day.

 > On 18/8/06 at 3:03 PM +0930, Michael Brader <michael at youramigo.com> wrote:
 > 
 > >We have RT set up behind a proxy ie.
 > >
 > ><VirtualHost *:80>
 > >    ServerName rt.youramigo.com
 > >    ...
 > >    ProxyPass / http://rtdb.bc.youramigo.com:8078/
 > ></VirtualHost>
 > 
 > We have a similar setup (except we're using mod_rewrite to setup
 > the frontend proxy) and I'm encountering the same problem.
 > 
 > >I'm sending the patch in case it's useful for anyone else running RT
 > >in this manner. Just set $UseCanonicalRedirect to 1 in
 > >etc/RT_SiteConfig.pm
 > 
 > Should I apply this patch to solve the problem, or is there some
 > other 'official' method to solve it?

The official method which was pointed out after I sent in my patch is
to use ProxyPassReverse as follows:

    ProxyPass        / http://rtdb.bc.youramigo.com:8078/
    ProxyPassReverse / http://rtdb.bc.youramigo.com:8078/

See one of:

http://httpd.apache.org/docs/1.3/mod/mod_proxy.html#proxypassreverse
http://httpd.apache.org/docs/2.0/mod/mod_proxy.html#proxypassreverse
http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypassreverse

depending on your version of Apache. I don't know how to do
ProxyPassReverse with mod_rewrite, so you might want to use my patch.

 > And Michael, thanks for making the patch available.

No worries.

-- 
Michael Brader                          michael.brader at youramigo.com




More information about the rt-users mailing list