apache2_vhost.j2 736 B

12345678910111213141516171819202122232425262728293031
  1. {% if ansible_prolog -%}
  2. {% from 'templates/ansible/prolog.j2' import prolog with context %}
  3. {{ prolog() }}
  4. {% endif -%}
  5. # Apache vhost for munin
  6. <VirtualHost *:80>
  7. ServerName {{ munin_master_vhostname }}
  8. DocumentRoot /var/cache/munin/www
  9. DirectoryIndex index.html
  10. <Location />
  11. AuthType basic
  12. AuthName "Restricted Access"
  13. AuthUserFile /etc/apache2/auth_admin
  14. Require valid-user
  15. </Location>
  16. <Directory /var/cache/munin/www>
  17. Options None
  18. AllowOverride None
  19. Order allow,deny
  20. Allow from all
  21. </Directory>
  22. LogLevel warn
  23. CustomLog ${APACHE_LOG_DIR}/munin.access.log combined
  24. ErrorLog ${APACHE_LOG_DIR}/munin.error.log
  25. </VirtualHost>