how to use proxy_set_header set Cookie
Liu Lantao
liulantao at gmail.com
Sat Jul 10 16:46:50 MSD 2010
try this, but i'm not sure.
location /el {
proxy_set_header "Cookie: mysession=$arg_ccvalue";
proxy_pass http://172.16.1.30:8080/trance;
}
On Fri, Jul 9, 2010 at 6:36 PM, yaoxinming <yaoxinming at gmail.com> wrote:
> I user a nginx to proxy a java web server,and want to add a cookie when
> proxy the url,my config :
>
>
> location /el {
> proxy_set_header Cookie "mysession=$arg_ccvalue";
> proxy_pass http://172.16.1.30:8080/trance;
>
> }
> but i can get the cookie in my java web application
>
> if anyone can give some advice?
>
> thanks
>
>
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
>
--
Liu Lantao
EMAIL: liulantao ( at ) gmail ( dot ) com ;
WEBSITE: http://www.liulantao.com/ .
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20100710/834ab004/attachment.html>
More information about the nginx
mailing list