Advertisement
Guest User

domet

a guest
May 10th, 2012
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. erver {
  2. listen 80;
  3. server_name forum.redcode.pro;
  4. access_log /var/log/nginx.access_log;
  5.  
  6. location ~* .(jpg|jpeg|gif|png|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|tar|wav|bmp|rtf|swf|ico|flv|txt|xml|docx|xlsx)$ {
  7. root /var/www/forum.redcode.pro;
  8. index index.html index.php;
  9. access_log off;
  10. expires 30d;
  11. }
  12.  
  13. location ~ /.ht {
  14. deny all;
  15. }
  16.  
  17. location / {
  18. proxy_pass http://127.0.0.1:8002;
  19. proxy_set_header X-Real-IP $remote_addr;
  20. proxy_set_header X-Forwarded-for $proxy_add_x_forwarded_for;
  21. proxy_set_header Host $host:80;
  22. proxy_connect_timeout 60;
  23. proxy_send_timeout 90;
  24. proxy_read_timeout 90;
  25. proxy_redirect off;
  26. proxy_set_header Connection close;
  27. proxy_pass_header Content-Type;
  28. proxy_pass_header Content-Disposition;
  29. proxy_pass_header Content-Length;
  30. }
  31.  
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement