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

Re: Using Subversion's apache server for more than Subversion

From: Daniele Nicolodi <daniele_at_grinta.net>
Date: 2002-09-09 19:58:46 CEST

On Mon, Sep 09, 2002 at 11:58:53AM -0400, Mike Wohlgemuth wrote:

> Now for the fun part. You will need to tell your main apache server to
> proxy requests for your subversion repositories to your subversion
> apache server. Say you have a repository at /myproject on the
> subversion apache server. Add the following to your main
>
> # turn on the rewrite engine
> RewriteEngine on
>
> # redirect any request without a trailing slash for myproject to one
> # with a trailing slash
> RewriteRule ^/myproject$ /myproject/ [R=permanent,L]
>
> # proxy all requests for /myproject/* to my subversion server
> RewriteRule ^/myproject/(.*)$ http://localhost:8000/myproject/$1 [P,L]
>
> This allows me to run the subversion apache server as a user that only
> has access to the subversion repositories, and my main apache server
> with no access to the repository at all.

I do the same in a imho cleaner way:

<VirtualHost 212.41.206.101 192.168.1.1>
        ServerName svn.grinta.net
        ProxyRequests Off
        NoCache *
        ProxyPass / http://192.168.2.10/svn/
</VirtualHost>

for create a virtual host, but you can use also a location:

<Location />
        ServerName svn.grinta.net
        ProxyRequests Off
        NoCache *
        ProxyPass /svn http://192.168.2.10/svn/
</Location>
                                
in this config 192.168.2.10 is a dedicated internal SVN server but you
can also specify http://localhost:8000/svn if you want.

Ciao

-- 
Daniele
		    --- http://www.grinta.net ---
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Sep 9 19:59:21 2002

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