Aller au contenu

$os_name

The $os_name variable exposes the name of the operating system detected from the client request.

Type

string

Possible values

  • Windows
  • Android
  • iOS

Example

location / {
    proxy_set_header X-Operating-System $os_name;
    proxy_pass http://backend;
}