2825 explained code solutions for 75 technologies


nginxUsing x-request-id header


server {
  add_header X-Request-ID $request_id;
}ctrl + c
server {

virtual server configuration block

add_header

sets specified header

X-Request-ID

this header is usually used to send unique request ID to client

$request_id

internal unique request ID generated by Nginx