default.tpl 983 B

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