Navigation Menu

Skip to content

Commit

Permalink
Added authentication check for online help directory
Browse files Browse the repository at this point in the history
  • Loading branch information
ffomenko committed Jul 5, 2012
1 parent ef746c9 commit 207d5f0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cookbooks/main/templates/default/web_app.conf.erb
Expand Up @@ -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>
Expand Down

0 comments on commit 207d5f0

Please sign in to comment.