pma_vhost.j2 944 B

12345678910111213141516171819202122232425262728293031323334
  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 {%if phpmyadmin_vhostip %}{{ phpmyadmin_vhostip }}{% else %}*{% endif %}:{{ phpmyadmin_vhostport }}>
  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. <IfModule mod_php5.c>
  20. php_admin_value max_execution_time 240
  21. php_admin_value upload_max_filesize 128M
  22. php_admin_value post_max_size 128M
  23. </IfModule>
  24. LogLevel warn
  25. CustomLog ${APACHE_LOG_DIR}/pma.access.log combined
  26. ErrorLog ${APACHE_LOG_DIR}/pma.error.log
  27. </VirtualHost>