D
D
DRUN2011-10-13 11:50:02
Nginx
DRUN, 2011-10-13 11:50:02

Nginx, how to pass headers from backend to end user in case of error?

Good afternoon,
tell me if it is possible to transfer
all headers through nginx from the backend to the end user.
When an error occurs in the backend, the client receives a 502-Bad Gateway response,
how can I force nginx to pass all the headers and text to see the error

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vitaly Peretyatko, 2011-10-13
@viperet

Usually, the nginx 502 Bad Gateway error means that it could not connect to the backend, that is, it does not respond on the specified port, or its waiting queue is full and it cannot serve another client. That is, in this case, it is simply impossible to get some headers and text from the backend.

K
Khurshed Nurmatov, 2011-10-13
@Hoorsh

Do you see errors in the backend logs?

D
Denis, 2011-10-13
@uscr

Read my question . If this is what you need, then you will find the answer there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question