Cookie path with reverse proxy

Reinis Rozitis r at roze.lv
Thu Mar 14 17:49:32 UTC 2019


> 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



More information about the nginx mailing list