Cookie path with reverse proxy

Stefan Meier meier.stefan at gmail.com
Fri Mar 15 09:39:26 UTC 2019


Thanks for the answer Reinis.

The directive proxy_cookie_path is for sure the solutions for the problem I
described in this mail.

(But I just found out that my cookie wasn't set from the serverside API but
on the client side. So the problem wasn't the NGINX config. Thank you
anyways!)

Am Do., 14. März 2019 um 18:49 Uhr schrieb Reinis Rozitis <r at roze.lv>:

> > Is there a way to set the path of the cookies to /, regardless which GUI
> is used?
>
> Yes you can make nginx to change the cookie
> http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cookie_path
>
>
> If the path from the backend app is unknown you can probably use a regex
> to match everything:
>
> proxy_cookie_path ~*^/.* /;
>
> rr
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>


-- 
Stefan Meier
Kusken 21
DK-7500 Holstebro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20190315/afcb3a13/attachment.html>


More information about the nginx mailing list