Permalink
Browse files

Added authentication check for online help directory

  • Loading branch information...
1 parent ef746c9 commit 207d5f08d8894038cc1de59df6cfc1e9135017de @ffomenko committed Jul 5, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 cookbooks/main/templates/default/web_app.conf.erb
@@ -15,6 +15,13 @@
Order allow,deny
Allow from all
</Directory>
+
+ <Directory <%= "#{@params[:docroot]}/Help" %>>
+ RewriteEngine on
+ RewriteCond %{HTTP:Cookie} !help=([a-zA-Z0-9]+)
+ RewriteRule ^(.*)$ /users/sign_in [L,R]
+ </Directory>
+
</VirtualHost>
<VirtualHost *:80>

0 comments on commit 207d5f0

Please sign in to comment.