LMSouq
server-admin Open

How to add a response header on nginx when using proxy_pass?

SO
sorin
1 month ago
3 views
Problem Description
I want to add a custom header for the response received from the server behind nginx. While `add_header` works for nginx-processed responses, it does nothing when the `proxy_pass` is used.

AI-Generated Solution

Powered by LMSouq AI · GPT-4.1-mini

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base