pma_vhost.j2 667 B

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