Answer the question
In order to leave comments, you need to log in
How to make a redirect to a page in nginx with a certain status (whether to use upstream)?
Good afternoon!
I am using nginx as a frontend for tomcat. Please help to do the following thing - it is necessary that nginx checks a certain path and redirects depending on the status.
For example, the path is /lost_signal, which returns status 200 if everything is ok, but if it returns !=200 then nignx should redirect all users (except those coming from office ip XXXX) to sample.html or /back_soon.
Thank you all in advance!
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