hoodwink.d enhanced
 

juretta.com

Capistrano: Hide SVN Files | July 07, 2006-->

July 07, 2006
Do you use Capistrano to deploy your Rails app?

Capistrano uses subversion to deploy rails applications. Unfortunately this means that the hidden subversion directories (usually .svn) are accessible via HTTP. To prevent the exposure of .svn files or directories you are strongly encouraged to add the following lines to your server configuration:

Apache:
# Don't expose .svn files/directories    
<DirectoryMatch "^/.*/\.svn/">
    Order deny,allow
    Deny from all
</DirectoryMatch>

 

Using a (mod_rewrite) rewrite rule:
RewriteRule \.svn/.*   -   [F]   

 

Lighttpd:
$HTTP["url"] =~ "/\.svn/" {
    url.access-deny = ( "" )
}

Diggman

About

juretta.com is the personal workspace of Stefan Saasen. You can send him an email or read more about this site in the „About“ section.

« Previous entry

Rename jpgs
posted over 2 years ago

» Next entry

Enable svnserve using xinetd on Debian
posted over 2 years ago

Recent comment

On: “Attachr.com: OpenID support added

You need to kill this spam stuff!

posted about 1 year ago by entropie

Look!

Latest links  RSS  

More...