>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.

For example my server config starts with:

  server {
    listen            9088;
    server_name       localhost;
    tcp_nodelay on;

    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 for
some reason?
_______________________________________________
nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to