Re: Cookie path with reverse proxy

2019-03-15 Thread Stefan Meier
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

RE: Cookie path with reverse proxy

2019-03-14 Thread Reinis Rozitis
> 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 every

Cookie path with reverse proxy

2019-03-14 Thread Stefan Meier
I have three different applications running behind a NGINX reverse proxy. They all have a login GUI, which uses the same authentication API. Authentication is based on cookies. My problem is now, that the path's of the cookies are set differently depending on which GUI is used to login. The auth