Forum: NGINX help как получить список кук

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
22b6d79242fc1fa4fdf59bd00480bd2c?d=identicon&s=25 Demetr (Guest)
on 2014-05-19 05:37
(Received via mailing list)
Что делаю не так?
Дайте пример конфигурации nginx с проксированием кук в заголовках.
Необходимо проксировать все куки. Не могу получить список кук в nginx(не
статика). По возможности включите в конфиг кеширование. Путаюсь,

worker_processes  4;

error_log  /etc/nginx/error.log info;
events {
     worker_connections  4096;

http {
     include       mime.types;
     default_type  application/octet-stream;

     client_header_timeout 3m;
     client_body_timeout 3m;
     send_timeout 3m;
     client_header_buffer_size 1k;
     large_client_header_buffers 4 4k;
     gzip on;
     gzip_min_length 1100;
     gzip_buffers 4 8k;
     gzip_types text/plain;
     output_buffers 1 32k;
     postpone_output 1460;
     sendfile on;
     tcp_nopush on;
     tcp_nodelay on;
     keepalive_timeout 75 20;

     #proxy_cache_path /var/lib/nginx/cache levels=1:2
keys_zone=cache:30m max_size=1G;
     #proxy_temp_path /var/lib/nginx/proxy 1 2;
     #proxy_ignore_headers Expires Cache-Control;
     #proxy_cache_use_stale error timeout invalid_header http_502;
     #proxy_cache_bypass $cookie_session;
     #proxy_no_cache $cookie_session;

     #keepalive_timeout  65;

     #limit_zone   by_vhost  $binary_remote_addr  10m;
     #limit_conn   by_vhost 50;

server {
     listen       80;


     #proxy_cache_valid 200 301 302 304 5m;
     #proxy_hide_header "Set-Cookie";
     #proxy_ignore_headers "Cache-Control" "Expires";

     location / {

         rewrite ^/blog/(.*)$ /blog.php?pic=$1 last;

         root   /var/www/html/cat;
         index  index.php index.html index.htm;


     # proxy the PHP scripts to Apache listening on
     location ~ \.php$ {

         rewrite ^/blog/(.*)$ /blog.php?pic=$1 last;
         proxy_set_header Host $host;
         proxy_set_header X-Real-IP $remote_addr;
#       proxy_set_header X-Forwarded-For $remote_addr;
#       proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

         expires max;
#       add_header Cache-Control "public, must-revalidate,

#     proxy_pass_header Set-Cookie;
#     proxy_set_header Cookie $http_cookie;

         proxy_redirect default;

#     proxy_cache cache;

         client_max_body_size 10m;
         client_body_buffer_size 128k;
         client_body_temp_path /home/client_body_temp;
         proxy_connect_timeout 90;
         proxy_send_timeout 90;
         proxy_read_timeout 90;
         proxy_buffers 4 32k;
         proxy_busy_buffers_size 64k;
         proxy_temp_file_write_size 64k;
         proxy_temp_path /home/proxy_temp;



A8108a0961c6087c43cda32c8616dcba?d=identicon&s=25 Maxim Dounin (Guest)
on 2014-05-19 13:20
(Received via mailing list)

On Mon, May 19, 2014 at 07:37:03AM +0400, Demetr wrote:

>    ?

First of all, you are using wrong list.  This one is English,
please don't try to ask questions in Russian here.  If you want to
write in Russian, please use nginx-ru@ mailing list.  See here for

Maxim Dounin
This topic is locked and can not be replied to.