pma_vhost.j2 573 B

1234567891011121314151617181920212223242526
  1. {% if ansible_prolog -%}
  2. {% from 'templates/ansible/prolog.j2' import prolog with context %}
  3. {{ prolog() }}
  4. {% endif -%}
  5. # Nginx vhost for phpmyadmin
  6. server {
  7. server_name {{ phpmyadmin_vhostname }};
  8. access_log /var/log/nginx/pma.access.log;
  9. error_log /var/log/nginx/pma.error.log;
  10. root /usr/share/phpmyadmin;
  11. index index.php;
  12. try_files $uri $uri/ /index.php;
  13. auth_basic "Restricted Access";
  14. auth_basic_user_file /etc/nginx/auth_admin;
  15. client_max_body_size 32m;
  16. location ~ \.php$ {
  17. include fastcgi_pass_fpm;
  18. }
  19. }