Redirect based on header value.

zestriddle nginx-forum at
Thu Nov 19 12:01:44 MSK 2009

Thanks :), but I still need one more thing to make it usable. This comparison $http_my_header ~ (\d+) must work on concrete values from file, namely

In file called header_value.file I would like to have


and comparison $http_my_header ~ (\d+) should check whether any value from header_value.file is in  $http_my_header

Posted at Nginx Forum:,23791,24085#msg-24085

More information about the nginx mailing list