ðòïåëôù 


  áòèé÷ 


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]

âÁÇ ÉÌÉ ÆÉÞÁ - proxy_hide_header


  • To: nginx-ru@xxxxxxxxx
  • Subject: âÁÇ ÉÌÉ ÆÉÞÁ - proxy_hide_header
  • From: Alexander Petrovsky <askjuise@xxxxxxxxx>
  • Date: Tue, 16 Nov 2010 13:05:12 +0800
  • 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=0SmVMTzz5WyHg6dUGC94ga85lyOrcd6Gm7atq69m74o=; b=jAgqdKRc0V+vGcOWxZoWpwIw50Z331vWj++5SOAYZZ9RLNXP2aiBoWxxiV9WIOo1sG ecpzW9rIWdTZnHv7gQIQozajPSF2AFs0aAwYBFDaOK5XqjERpnqf2xm2ogBY93FBnJqh L/lkYaCvjFaaOz3wQ1RwumSJlaaWy3b9RZ0y0=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=nHOuCjJo2RyWCAz9sIRG0N4/aQumWZdGx1lJxAy6ISiGhSYWLQXsA8R72r6JIM7qo2 6/7FZehltogEXTV2tGBzQ3HqAWno4x7s4cy77QHFRzDz+DHbuaPn2rygWhRq4vqOqhVF EKVzFczgtzw0hjb8/cu49ykA4DX9LTeM0KIrk=

éÍÅÅÔÓÑ ÌÏËÅÊÛÅÎ:

ššššššš location / {
ššššššššššššššš proxy_passššššššššššššššššššš http://localhost:8180/;
ššššššššššššššš proxy_set_headeršššššššššš Hostššššššššššš $host;
ššššššššššššššš proxy_set_headeršššššššš š X-Real-IPšššššš $remote_addr;
ššššššššššššššš proxy_set_headeršššššš ššš X-Forwarded-For $proxy_add_x_forwarded_for;

ššššššššššššššš proxy_cachešššššššššššššššššš off;
#ššššššššššššš proxy_cachešššššššššššššššššš primary_zone;
ššššššššššššššš proxy_cache_validššššššššš 200 301 302 304 10m;
ššššššššššššššš proxy_cache_use_stalešš updating error timeout invalid_header http_404 http_500 http_502 http_503;
ššššššššššššššš proxy_cache_keyššššššššššš $scheme$host$uri$is_args$args;

#ššššššššššššš proxy_cache_bypassšššššš $cookie_JSESSIONID;

ššššššššššššššš proxy_hide_headeršššššššššš "Set-Cookie";
ššššššššššššššš proxy_ignore_headersššššš "Cache-Control" "Expires";
ššššššš }


ðÒÉ ÚÁÈÏÄÅ ÎÁ ÓÔÒÁÎÉÃÕ ÌÏÇÉÎÁ, /login ÂÅËÅÎÄ ÐÙÔÁÅÔÓÑ ÐÅÒÅÄÁÔØ ËÌÉÅÎÔÕ ËÕËÕ $cookie_JSESSIONID Ó ÎÏÍÅÒÏÍ ÓÅÓÓÉÉ, Á ÄÅÒÅËÔÉ×Á proxy_hide_header "Set-Cookie" Å£ ÅÓÔÅÓÔ×ÅÎÎÏ ÂÌÏËÉÒÕÅÔ, É ÚÁÊÔÉ ÎÅ ÐÏÌÕÞÁÅÔÓÑ. îÏ ÐÒÉ ÐÏ×ÔÏÒÎÏÊ ÏÔÐÒÁ×ËÅ ÌÏÇÉÎÁ/ÐÁÒÏÌÑ ÄÁÎÎÙÅ ÕÈÏÄÑÔ ÎÁ ÓÅÒ×ÅÒ, ÄÉÒÅËÔÉ×Á proxy_hide_header "Set-Cookie" ÎÅ ÓÒÁÂÁÔÙ×ÁÅÔ É ËÌÉÅÎÔ ÐÏÌÕÞÁÅÔ ËÕËÕ $cookie_JSESSIONID Ó ÎÏÍÅÒÏÍ ÓÅÓÓÉÉ.

üÔÏ ÂÁÇ ÉÌÉ ÆÉÞÁ?

> uname -a
FreeBSD www.sei.irk.ru 8.0-STABLE FreeBSD 8.0-STABLE #0 r199880: Thu Decš 3 13:35:21 IRKT 2009šššš alexander@xxxxxxxxxxxxxxxxx:/usr/obj/usr/src/sys/WEBKERNELš i386
> nginx -V
nginx version: nginx/0.8.50
built by gcc 4.2.1 20070719š [FreeBSD]
TLS SNI support enabled
configure arguments: --prefix=/usr/local/etc/nginx --with-cc-opt='-I /usr/local/include' --with-ld-opt='-L /usr/local/lib' --conf-path=/usr/local/etc/nginx/nginx.conf --sbin-path=/usr/local/sbin/nginx --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx-error.log --user=www --group=www --http-client-body-temp-path=/var/tmp/nginx/client_body_temp --http-proxy-temp-path=/var/tmp/nginx/proxy_temp --http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp --http-log-path=/var/log/nginx-access.log --with-http_addition_module --with-http_gzip_static_module --with-http_ssl_module --with-http_stub_status_module --with-pcre
>

--
ðÅÔÒÏ×ÓËÉÊ áÌÅËÓÁÎÄÒ / Alexander Petrovsky,

ICQ: 350342118
Jabber: juise@xxxxxxxxx
Phone: +7 914 8 820 815
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.