Advertisement
Guest User

Untitled

a guest
Dec 18th, 2012
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. user www-data;
  2. worker_processes 4;
  3. error_log /var/log/nginx/nginx.log info;
  4. pid /var/run/nginx.pid;
  5.  
  6. events {
  7. worker_connections 1024;
  8. multi_accept on;
  9. }
  10.  
  11. http {
  12. include fastcgi.conf;
  13. include mime.types;
  14. default_type application/octet-stream;
  15. set_real_ip_from 127.0.0.1;
  16. real_ip_header X-Forwarded-For;
  17.  
  18. ## Proxy
  19. proxy_redirect off;
  20. proxy_set_header Host $host;
  21. proxy_set_header X-Real-IP $remote_addr;
  22. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  23. client_max_body_size 10m;
  24. client_body_buffer_size 128k;
  25. proxy_connect_timeout 90;
  26. proxy_send_timeout 90;
  27. proxy_read_timeout 90;
  28. proxy_buffers 32 4k;
  29.  
  30. ## Compression
  31. gzip on;
  32. gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;
  33. gzip_disable "MSIE [1-6]\.(?!.*SV1)";
  34.  
  35. ### TCP options
  36. tcp_nodelay on;
  37. tcp_nopush on;
  38. keepalive_timeout 65;
  39. sendfile on;
  40.  
  41. include /etc/nginx/sites-enabled/*;
  42.  
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement