I just want to set…if $http_user_agent equals AAA or BBB or empty
("")…then return 400…Thanks…
if ($http_user_agent ~ (AAA|BBB)) {return 400;}
if ($http_user_agent = "") {return 400;}
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,87266,87266#msg-87266