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]


  • To: nginx-ru@xxxxxxxxx
  • Subject:
  • From: Alex Smorodin <agsmorodin@xxxxxxxxx>
  • Date: Mon, 7 Jun 2010 15:06:54 +0300
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=BULXqxMjUhTHQkj9nzJl+ulqwxdWBYNtRX6dvxV+0+A=; b=sGS5Vw19geoBuQQfJleBN7jB8gC2WC6c7qOBsTjFun5/MburIgzWJl20C9ifrFM8cV xOg/iV/aDIpu0ApOfwrD0uRqrpLPE0f1k/2tFOscnHAiC/xtBenBilhRZw8QiekdB5/m vOyoPyFu1Vg6bUrjA3JJkaV0dHxMaY6zWl9NM=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=bc7VFk8Q5zcbTM6sUKdvfReOFgEX9L+3GUVrTJGJOeWf/N5THFmN51H/TOLd85462N YQHhLHM2Fvd1S8+ILsWj699wesQk18+i1BGUotOBTqPFkBAR9bS0FJXOfjhel/QjtSQn P4T/pvPcRu3Y4qdWhMTJRjtF0+Kx6gs/SwrHo=

.ubuntu 2.6.27-11-generic,nginx version: nginx/0.7.65.
ךnginx. post , session, c, , . : , "proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;".
, ., ? proxy_cache_key session, Ԛ ( ).
:
server {
listen 192.168.0.32:9081;
server_name domain.com;
access_log /var/log/nginx/domain.com/nginx-access.log combined;
error_log/var/log/nginx/domain.com/nginx-error.log error;
proxy_temp_path /var/cache/nginx/domain.com;
location @nocached {
proxy_pass http://192.168.0.32:81;
proxy_set_header Host domain.com;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location / {
proxy_pass http://192.168.0.32:81;
proxy_set_header Hostdomain.com;
proxy_set_headerX-Real-IP$remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_next_upstream error timeout invalid_header http_500 http_503;
if ($cookie_session) {
return 412;
}
if ($request_method = POST ) {
return 412;
}
error_page 412 = @nocached;
proxy_cache one;
proxy_cache_key "$request_method|$is_args|$host|$request_uri|$cookie_session";
proxy_hide_header "Set-Cookie";
proxy_ignore_headers "Cache-Control" "Expires";
proxy_cache_valid 200 301 302 304 1h;
}
}
.


--
,


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

  • Follow-Ups:
    • Re:
      • From: Igor Sysoev

 




Copyright © Lexa Software, 1996-2009.