ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Прокси по небольшой локальной сети



Вот для примера мой конфиг
проксирования на апач, 
     server {
         
         server_name  localhost;
       include      ports.conf;
       location / {
             error_log   off;
             access_log  off;
             proxy_pass   http://127.0.0.1:8080/;
             proxy_set_header Host $host; # Forward IP headers to
Apache
             proxy_set_header X-Real-IP $remote_addr; # Forward IP
headers to Apache
             proxy_set_header HTTP_REMOTE_ADDR $remote_addr; # Forward
IP headers to Apache
             proxy_set_header X-Forwarded-For $remote_addr; # Forward IP
headers to Apache
 
            proxy_pass_header           Cookie;
            proxy_buffers               4   256k;
            proxy_ignore_client_abort   off;
            proxy_intercept_errors      off;
            proxy_connect_timeout       60;
            proxy_send_timeout          180;
            proxy_read_timeout          180;
            proxy_buffer_size           128k;
            proxy_busy_buffers_size     256k;
            proxy_temp_file_write_size  256k;
            proxy_ignore_headers        Cache-Control Expires;
         }
         location ~ /\.ht {
             deny  all;
         }
    }

Posted at Nginx Forum: 
http://forum.nginx.org/read.php?21,223380,223401#msg-223401

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.