E
E
Evdokim2019-10-09 11:17:04
Nginx
Evdokim, 2019-10-09 11:17:04

How in Nginx before proxy_pass to check the availability of the person to whom we are forwarding?

When the host being redirected to via Nginx is unavailable, the browser has to wait 7-10 seconds before showing the visitor a timeout.
How to make Nginx tell the browser service unavailable immediately if the host being redirected to is down?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
paran0id, 2019-10-09
@paran0id

So redirect or proxy_pass?

spoiler
люблю задавать этот вопрос на собеседованиях

proxy_connect_timeout can be set

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question