Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 7th, 2012  |  syntax: None  |  size: 0.94 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. worker_processes 4;
  2.  
  3. events {
  4.     worker_connections  1024;
  5. }
  6.  
  7. http {
  8.         server {
  9.                 listen 80;
  10.                 gzip  on;
  11.                 gzip_disable "MSIE [1-6]\.(?!.*SV1)";
  12.                 gzip_comp_level 2;
  13.                 gzip_proxied any;
  14.                 gzip_min_length  1000;
  15.                 gzip_types text/plain text/css application/json text/xml text/javascript;
  16.  
  17.                 location / {
  18.                         proxy_redirect   off;
  19.                         proxy_set_header Host $host;
  20.                         proxy_set_header X-Real-IP $remote_addr;
  21.                         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  22.                         client_max_body_size 10m;
  23.                         client_body_buffer_size 128k;
  24.                         proxy_connect_timeout 6000;
  25.                         proxy_send_timeout 6000;
  26.                         proxy_read_timeout 6000;
  27.                         proxy_buffer_size 4k;
  28.                         proxy_buffers 4 32k;
  29.                         proxy_busy_buffers_size 64k;
  30.                         proxy_temp_file_write_size 64k;
  31.                         send_timeout 6000;
  32.                         proxy_buffering off;
  33.                         proxy_next_upstream error;
  34.                
  35.                         proxy_pass http://localhost:8081;
  36.                 }
  37.  
  38.  
  39.                 location ~ ^/(images|js/jquery|js)/ {
  40.                         root /root/forteschat3/public;
  41.                         expires max;
  42.                         break;
  43.                 }
  44.         }
  45. }