default.stpl 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. server {
  2. listen %ip%:%proxy_ssl_port% ssl;
  3. server_name %domain_idn% %alias_idn%;
  4. ssl_certificate %ssl_pem%;
  5. ssl_certificate_key %ssl_key%;
  6. error_log /var/log/%web_system%/domains/%domain%.error.log error;
  7. location / {
  8. proxy_pass https://%ip%:%web_ssl_port%;
  9. location ~* ^.+\.(%proxy_extentions%)$ {
  10. root %sdocroot%;
  11. access_log /var/log/%web_system%/domains/%domain%.log combined;
  12. access_log /var/log/%web_system%/domains/%domain%.bytes bytes;
  13. expires max;
  14. try_files $uri @fallback;
  15. }
  16. }
  17. location /error/ {
  18. alias %home%/%user%/web/%domain%/document_errors/;
  19. }
  20. location @fallback {
  21. proxy_pass https://%ip%:%web_ssl_port%;
  22. }
  23. location ~ /\.ht {return 404;}
  24. location ~ /\.svn/ {return 404;}
  25. location ~ /\.git/ {return 404;}
  26. location ~ /\.hg/ {return 404;}
  27. location ~ /\.bzr/ {return 404;}
  28. include %home%/%user%/conf/web/snginx.%domain%.conf*;
  29. }