nginx jsessionid/cookie未缓存,导致cookie变化

upstream bakend{
      server 127.0.0.1:9999;
      #sticky_cookie_insert srv_id expires=1h domain=1.1.1.1 path=/;
   }
 server {
        listen       80;
        server_name  localhost;

        location /gsd {
                #proxy_read_timeout 120;
                proxy_set_header   Cookie $http_cookie;
                proxy_pass  http://bakend/project/commonIndex;
                proxy_cookie_path /project /;
        }
        #location /index.html {
         #       allow all;
       # }

        location / {
            root   /etc/nginx/html;
            index  index.html index.htm;
        }
    }

你可能感兴趣的:(nginx)