Answer the question
In order to leave comments, you need to log in
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
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question