pga_vhost.j2 710 B

123456789101112131415161718192021222324252627282930
  1. {% if ansible_prolog -%}
  2. {% from 'templates/ansible/prolog.j2' import prolog with context %}
  3. {{ prolog() }}
  4. {% endif -%}
  5. # Apache vhost for phppgadmin
  6. <VirtualHost *:80>
  7. ServerName {{ phppgadmin_vhostname }}
  8. DocumentRoot /usr/share/phppgadmin
  9. DirectoryIndex index.php
  10. {% if http_auth_phppgadmin %}
  11. <Location />
  12. AuthType basic
  13. AuthName "Restricted Access"
  14. AuthUserFile /etc/apache2/auth_admin
  15. Require valid-user
  16. </Location>
  17. {% endif %}
  18. <Directory /usr/share/phppgadmin>
  19. Require all granted
  20. </Directory>
  21. LogLevel warn
  22. CustomLog ${APACHE_LOG_DIR}/pga.access.log combined
  23. ErrorLog ${APACHE_LOG_DIR}/pga.error.log
  24. </VirtualHost>