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

Re: Re[2]: Want to set up SVN for a web app

From: Ryan Schmidt <subversion-2009a_at_ryandesign.com>
Date: Thu, 2 Apr 2009 22:01:28 -0500

On Apr 2, 2009, at 11:09, Andrey Repin wrote:

> Make sure you have .svn and CVS directories masked out of direct
> access.
> for Apache, it is done by specifying
>
> RewriteEngine On
> RewriteRule "(.+/)?(\.svn|CVS)/" "/" [F,L]
>
> In either .htaccess file or VirtualHost configuration.

Yes, this is a good idea. For comparison, I do it this way, for Apache:

        RedirectMatch 404 .*/\.svn(/|$)

Doesn't need mod_rewrite.

Enhance for CVS directories if needed.

I prefer to make them return 404 Not Found instead of 403 Forbidden.
No need to give the world any indication that there's a working copy
at all.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1527816

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-04-03 05:02:26 CEST

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.