Skip to content

$os_version

The $os_version variable provides the version of the operating system detected from the client request.

Type

string

Possible values

  • 14
  • 17.2
  • 11

Example

location / {
    proxy_set_header X-OS-Version $os_version;
    proxy_pass http://backend;
}