HTTP variables
$ssl_server_name variable (HTTP TLS)
Client-requested TLS SNI. It may differ from the HTTP Host field and must not be used directly as a filesystem path. Version: 1.7.0. Requires HTTP SSL module and appropriate TLS library. No positional arguments. The example is an http-context map; use only in a disposable TLS lab. A map classification is not authorization.
Formal Syntax & Structure
nginx syntaxnginx
$ssl_server_nameWorking Example
Example Snippetnginx
# Partial http-context example: classify synthetic TLS metadata without emitting raw values.map $ssl_server_name $lab_tls_server_name { atlas.test known_name; default other;}