no-php.tpl 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #=======================================================================#
  2. # Default Web Domain Template #
  3. # DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS #
  4. #=======================================================================#
  5. server {
  6. listen %ip%:%web_port%;
  7. server_name %domain_idn% %alias_idn%;
  8. root %docroot%;
  9. index index.php index.html index.htm;
  10. access_log /var/log/nginx/domains/%domain%.log combined;
  11. access_log /var/log/nginx/domains/%domain%.bytes bytes;
  12. error_log /var/log/nginx/domains/%domain%.error.log error;
  13. include %home%/%user%/conf/web/%domain%/nginx.forcessl.conf*;
  14. types {
  15. text/html html htm shtml php php5;
  16. }
  17. location / {
  18. location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
  19. expires max;
  20. fastcgi_hide_header "Set-Cookie";
  21. }
  22. }
  23. location /error/ {
  24. alias %home%/%user%/web/%domain%/document_errors/;
  25. }
  26. location ~* "/\.(htaccess|htpasswd)$" {
  27. deny all;
  28. return 404;
  29. }
  30. location /vstats/ {
  31. alias %home%/%user%/web/%domain%/stats/;
  32. include %home%/%user%/web/%domain%/stats/auth.conf*;
  33. }
  34. include /etc/nginx/conf.d/phpmyadmin.inc*;
  35. include /etc/nginx/conf.d/phppgadmin.inc*;
  36. include %home%/%user%/conf/web/%domain%/nginx.conf_*;
  37. }