HTTP directives

proxy_hide_header directive (HTTP)

Contexts: http, server, location. No explicit default directive. Suppresses an additional upstream response field.

Formal Syntax & Structure

nginx syntaxnginx
proxy_hide_header field;

Parameters & Attributes

NameTypeDescription
fieldHTTP response field nameSuppress an extra upstream response header.

Working Example

Example Snippetnginx
proxy_hide_header X-Lab-Internal;
Nginx Reference