LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Prevent access to subversion .svn directories

Reply
 
Thread Tools Display Modes
  #1  
Old 10-24-2006, 05:12 AM
subBlue subBlue is offline
Member
 
Join Date: Oct 2006
Posts: 42
Default Prevent access to subversion .svn directories

We use subversion to deploy our websites and I was wondering how I could configure litespeed so that all requests to .svn directories and files within them are blocked?

Thanks.
Reply With Quote
  #2  
Old 10-24-2006, 08:52 AM
subBlue subBlue is offline
Member
 
Join Date: Oct 2006
Posts: 42
In answer to my own question I found that I can add this to the rewrite rules for each virtual host:

Code:
RewriteRule ^(.*/)?\.svn/ - [F,L]
ErrorDocument 403 "Access Forbidden"
However, is it possible to set it server-wide rather than have to go through each VH?
Reply With Quote
  #3  
Old 10-24-2006, 12:37 PM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
LiteSpeed context rule is faster than rewrite rule.

Context rule to disable all access to .files.

Static
exp:^\/\.
Location: /an_emptry_folder/
Accessible: No

With 3.0 Release, all dot prefixed files .svn, etc, will not be accessible. Most likely it will be an option checkbox in "Server -> Security".
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 10:36 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.