suspended.tpl 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #=========================================================================#
  2. # Default Web Domain Template #
  3. # DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS #
  4. # https://hestiacp.com/docs/server-administration/web-templates.html #
  5. #=========================================================================#
  6. server {
  7. listen %ip%:%proxy_port%;
  8. server_name %domain_idn% %alias_idn%;
  9. root %docroot%;
  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. location ~ /\.(?!well-known\/|file) {
  15. deny all;
  16. return 404;
  17. }
  18. location / {
  19. try_files $uri /index.html;
  20. location ~* ^.+\.(jpeg|jpg|png|webp|gif|bmp|ico|svg|css|js)$ {
  21. expires max;
  22. fastcgi_hide_header "Set-Cookie";
  23. }
  24. }
  25. location /error/ {
  26. alias %home%/%user%/web/%domain%/document_errors/;
  27. }
  28. include %home%/%user%/conf/web/%domain%/nginx.conf_*;
  29. }