Help нужно передать куки (need to transfer cookies)

Что делаю не так? Дайте пример конфигурации nginx с проксированием кук в
заголовках. Необходимо проксировать все куки. Не могу получить список
кук в nginx(не статика). По возможности включите в конфиг кеширование.
Путаюсь, спасибо.

What I doing wrong?
Give an example nginx configuration with Proxy cookie in the headlines.
Need to proxy all cookies. I can not get a list of cookies in nginx (not
statics). Please include in the config cache. Confused, thanks.

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;