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
| Name | Type | Description |
|---|---|---|
| field | HTTP response field name | Suppress an extra upstream response header. |
Working Example
Example Snippetnginx
proxy_hide_header X-Lab-Internal;