Advertisement
Guest User

fdsf

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