Advertisement
Guest User

Untitled

a guest
Dec 23rd, 2014
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. worker_processes auto;
  2.  
  3. error_log logs/error.log crit;
  4.  
  5. events {
  6. worker_connections 8096;
  7. multi_accept on;
  8. use epoll;
  9. }
  10.  
  11. http {
  12.  
  13. sendfile on;
  14. include mime.types;
  15. default_type application/octet-stream;
  16. keepalive_timeout 60;
  17.  
  18. server {
  19.  
  20. client_header_timeout 3m;
  21. client_body_timeout 3m;
  22. send_timeout 3m;
  23.  
  24. tcp_nopush on;
  25. tcp_nodelay on;
  26.  
  27. listen 80;
  28.  
  29. server_tokens off;
  30.  
  31. gzip on;
  32. gzip_vary on;
  33. gzip_min_length 10240;
  34. gzip_proxied expired no-cache no-store private auth;
  35. gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml;
  36. gzip_disable "MSIE [1-6]\.";
  37.  
  38. error_page 500 502 503 504 /50x.html;
  39. error_page 400 403 404 405 /40x.html;
  40.  
  41. location / {
  42.  
  43. client_max_body_size 100m;
  44. client_body_buffer_size 100m;
  45.  
  46. proxy_set_header Host $host;
  47. proxy_set_header X-Real-IP $remote_addr;
  48. proxy_connect_timeout 90;
  49. proxy_send_timeout 90;
  50. proxy_read_timeout 90;
  51. proxy_buffering on;
  52. proxy_buffer_size 128k;
  53. proxy_buffers 100 128k;
  54.  
  55. location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
  56. expires 7d;
  57. add_header Cache-Control "public, must-revalidate, proxy-revalidate";
  58. add_header Pragma public;
  59. log_not_found off;
  60. access_log off;
  61.  
  62. proxy_pass http://192.168.15.1;
  63. }
  64.  
  65. proxy_pass http://192.168.15.1;
  66. }
  67. }
  68. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement