Skip to content
Browse files

Fix the auth stanza

  • Loading branch information...
1 parent 6f97b14 commit 630849f06521e82bc469852c9a383b722ed14cea @Sutto committed Apr 26, 2012
Showing with 6 additions and 8 deletions.
  1. +6 −8 templates/default/graphite-vhost.conf.erb
View
14 templates/default/graphite-vhost.conf.erb
@@ -15,20 +15,18 @@
CustomLog /opt/graphite/storage/log/webapp/access.log common
<Location "/">
+ <% if node[:graphite][:graphite_web][:auth_file] -%>
+ AuthType Basic
+ AuthName "Graphite"
+ AuthUserFile <%= node[:graphite][:graphite_web][:auth_file] %>
+ Require valid-user
+ <% end -%>
SetHandler python-program
PythonPath "['/opt/graphite/webapp'] + sys.path"
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE graphite.settings
PythonDebug Off
PythonAutoReload Off
- <% if node[:graphite][:graphite_web][:auth_file] -%>
- AuthType basic
- AuthUserFile <%= node[:graphite][:graphite_web][:auth_file] %>
- Require valid-user
- AllowOverride None
- Order allow,deny
- Allow from all
- <% end -%>
</Location>
<Location "/content/">

0 comments on commit 630849f

Please sign in to comment.
Something went wrong with that request. Please try again.