Welcome! Log In Create A New Profile

Advanced

Re: Cookie path with reverse proxy

Stefan Meier
March 15, 2019 05:40AM
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@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@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>


--
Stefan Meier
Kusken 21
DK-7500 Holstebro
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Cookie path with reverse proxy

Stefan Meier March 14, 2019 12:40PM

RE: Cookie path with reverse proxy

Reinis Rozitis March 14, 2019 01:50PM

Re: Cookie path with reverse proxy

Stefan Meier March 15, 2019 05:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 91
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready