The header value should be in quotes: "$x_your_header" Posted at Nginx Forum: http://forum.nginx.org/read.php?2,230292,230325#msg-230325