HTTP directives

underscores_in_headers directive (HTTP)

Keep the standard underscore exclusion policy unless the application explicitly requires it; coordinate with invalid-header filtering and upstream identity. Context: http, server. Documented default: off. Version: Introduction not established. OSS documentation; check target build. Example is a partial http configuration fragment; use a disposable lab, not a production tuning prescription.

Formal Syntax & Structure

nginx syntaxnginx
underscores_in_headers on | off;

Parameters & Attributes

NameTypeDescription
stateon | offSelect whether this behavior is enabled.

Working Example

Example Snippetnginx
underscores_in_headers off;
Nginx Reference