S
S
Sergey Vasiliev2021-06-08 19:33:44
Nginx
Sergey Vasiliev, 2021-06-08 19:33:44

How does proxy_cookie_domain work in nginx?

I need to make sure that the cookies on my domain and subdomain are the same. The domain and subdomain are now in different configs. If necessary, I can transfer to one.

Tried like this "proxy_cookie_domain ~^(.+)(Domain=panel.domain.ru)(.+)$ "$1 Domain=domain.ru $3";" put in both configs, but does not work. What to do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lynn "Coffee Man", 2021-06-08
@Lynn

I recommend reading the documentation .
proxy_cookie_domain panel.domain.ru .domain.ru;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question