[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: Re: FIXED IT (was: RE: RE: RE: reverse proxy to svn server HOWTO?)

From: Rob van Oostrum <rob.vanoostrum_at_blastradius.com>
Date: 2004-08-11 20:10:40 CEST

np ... here's the basic sequence of steps I think you need ...

1) The proxy server needs to be configured with DAV, or you'll get method not allowed errors. You don't need to turn on DAV or anything, you just need mod_dav loaded or built-in
2) You configure the reverse proxy like you would any other:

ProxyPass /svn/project http://proxied.server/svn/project
ProxyPassReverse /svn/project http://proxied.server/svn/project

In my case, these directives are inside a <VirtualHost> I setup for the purpose:

<VirtualHost 11.22.33.44:80>
  ServerName proxy.server
  ProxyPass /svn/project http://proxied.server/svn/project
  ProxyPassReverse /svn/project http://proxied.server/svn/project
</VirtualHost>

pretty straight-forward so far ... the only quirk is this:

It seems you cannot change the uri structure ... so if your 'actual' SVN URL looks like this: http://proxied.server/svn/project ...
your proxy URL *HAS* to look like this: http://proxy.server/svn/project

If you try to make your 'proxy' URL be http://proxy.server/project, it will not work (I get PROPFIND 405 errors, it seems the proxy works, but that somehow SVN doesn't like it, but now I'm speculating).

So ... if you want to proxy only some nested directory inside your repository (a specific branch for example), it looks like you'll have to include all its parent directories in the proxy URI as well (which is exactly what I've done in one particular case). Simply put ... with the exception of the part up to and including the hostname/port number portion of the URL, the proxy URL and the proxied URL have to be identical.

hope this is of some help
Rob

> -----Original Message-----
> From: Seth Falcon [mailto:sfalcon@fhcrc.org]
> Sent: Wednesday, August 11, 2004 12:21 PM
> To: users@subversion.tigris.org
> Subject: Re: FIXED IT (was: RE: RE: RE: reverse proxy to svn server
> HOWTO?)
>
>
> On Wed, Aug 11, 2004 at 10:30:13AM -0400, Rob van Oostrum wrote:
> > for some reason getting rid of the <Location> tags and just changing
> > the proxy directives accordingly (move the Location
> location into the
> > ProxyPass(Reverse) lines) did the trick
>
> Would you be willing to post a summary of your working config. I'm
> having trouble piecing it together from the thread and this reverse
> proxy stuff is of interest to me.
>
> Thanks,
>
> + seth
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Aug 11 20:11:28 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.