It works, you have to put header in quotes: "$http_x_header_from_request" Posted at Nginx Forum: http://forum.nginx.org/read.php?2,230313,230324#msg-230324