From the add_header docs I understand that it works at location, http
server context. But when I use add_header at the server level I don’t
the headers being added to the response.
For example my server config starts with:
etag on; access_log on; add_header X-AppServer $upstream_addr; add_header X-AppServer-Status $upstream_status; add_header X-Cache $upstream_cache_status;
Am I missing something or is this just not working at the server level