Advertisement
Guest User

fdsf

a guest
Aug 3rd, 2012
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. server
  2. {
  3. listen 127.0.0.1 default;
  4.  
  5. server_name .domain.com;
  6. access_log off;
  7. #access_log /var/log/nginx/domain.com.access.log;
  8. error_log /var/log/nginx/domain.com.error.log;
  9. index index.php index.html index.htm;
  10. client_max_body_size 300M;
  11. #client_body_buffer_size 128k;
  12.  
  13. root /var/www/domain.com/html;
  14. expires 0;
  15.  
  16.  
  17. location / {
  18. # proxy to upstream server
  19. proxy_pass http://127.0.0.1;
  20. proxy_redirect default;
  21.  
  22. try_files $uri $uri/ /index.php;
  23.  
  24. # down page
  25. if (-f $document_root/down.html) {
  26. return 503;
  27. }
  28.  
  29. # track uploads in the 'proxied' zone
  30. # remember connections for 30s after they finished
  31. track_uploads proxied 30s;
  32. }
  33.  
  34.  
  35. location ^~ /progress {
  36. # report uploads tracked in the 'proxied' zone
  37. report_uploads proxied;
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement