Answer the question
In order to leave comments, you need to log in
Nginx: how to set up a redirect by subdomain and request_uri?
Good evening!
Can you please tell me how to configure the following condition in nginx:
if ($host = sobdomain.domain.com) {
if ($request_uri = ^\/(login|signup)$) {
return 301 https://other.site
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question