no-php.stpl 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. server {
  2. listen %ip%:%web_ssl_port% ssl;
  3. server_name %domain_idn% %alias_idn%;
  4. root %sdocroot%;
  5. index index.php index.html index.htm;
  6. access_log /var/log/nginx/domains/%domain%.log combined;
  7. access_log /var/log/nginx/domains/%domain%.bytes bytes;
  8. error_log /var/log/nginx/domains/%domain%.error.log error;
  9. ssl_certificate %ssl_pem%;
  10. ssl_certificate_key %ssl_key%;
  11. types {
  12. text/html html htm shtml php php5;
  13. }
  14. location / {
  15. location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
  16. expires max;
  17. }
  18. }
  19. error_page 403 /error/404.html;
  20. error_page 404 /error/404.html;
  21. error_page 500 502 503 504 /error/50x.html;
  22. location /error/ {
  23. alias %home%/%user%/web/%domain%/document_errors/;
  24. }
  25. location ~* "/\.(htaccess|htpasswd)$" {
  26. deny all;
  27. return 404;
  28. }
  29. location /vstats/ {
  30. alias %home%/%user%/web/%domain%/stats/;
  31. include %home%/%user%/conf/web/%domain%.auth*;
  32. }
  33. include /etc/nginx/conf.d/phpmyadmin.inc*;
  34. include /etc/nginx/conf.d/phppgadmin.inc*;
  35. include /etc/nginx/conf.d/webmail.inc*;
  36. include %home%/%user%/conf/web/snginx.%domain%.conf*;
  37. }