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

Re: Export only modified files

From: Blair Zajac <blair_at_orcaware.com>
Date: 2005-05-18 16:29:37 CEST

Ryan Schmidt wrote:
> You can have a working copy of your site on the live server, and point
> the Apache DocumentRoot at it. Then you can use "svn up" to update it
> whenever you like. In this case you probably want to set up an
> additional Apache rule to block access to the .svn directories. For
> example, here's a solution with mod_rewrite:
>
> RewriteEngine On
> RewriteRule (^|/)\.svn(/|$) - [F]

I haven't done any testing on how CPU intensive mod_rewrite is compared
to using DirectoryMatch, but I use this to protect my live working copies.

# Prevent any access to .svn directories.
<DirectoryMatch "^/.*/\.svn/">
     Options None
     AllowOverride None
     Order allow,deny
     Deny from all
</DirectoryMatch>

Regards,
Blair

-- 
Blair Zajac, Ph.D.
<blair@orcaware.com>
Subversion and Orca training and consulting
http://www.orcaware.com/svn/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed May 18 16:38:26 2005

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.