sys_vhost.j2 552 B

1234567891011121314151617181920212223
  1. {% if ansible_prolog -%}
  2. {% from 'templates/ansible/prolog.j2' import prolog with context %}
  3. {{ prolog() }}
  4. {% endif -%}
  5. # Nginx vhost for PHP system checks
  6. server {
  7. server_name {{ phpsyscheck_vhostname }};
  8. access_log /var/log/nginx/sys.access.log;
  9. error_log /var/log/nginx/sys.error.log;
  10. root /etc/php5/syscheck.d;
  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. location ~ \.php(/|$) {
  16. include fastcgi_pass_fpm;
  17. }
  18. }