sys_vhost.j2 840 B

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