<div dir="ltr">From the add_header docs I understand that it works at location, http and server context. But when I use add_header at the server level I don't see the headers being added to the response.<div><br></div>
<div>For example my server config starts with:</div><div><br></div><div><div> server {</div><div> listen 9088;</div><div> server_name localhost;</div><div> tcp_nodelay on;</div><div><br></div><div>
etag on;</div><div> access_log on;</div><div><br></div><div> add_header X-AppServer $upstream_addr; </div><div> add_header X-AppServer-Status $upstream_status; </div><div> add_header X-Cache $upstream_cache_status; </div>
</div><div><br></div><div>Am I missing something or is this just not working at the server level for some reason?</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div>
<div><br></div></div>