anyone can help me to combine these 2 lines?

kamanwu nginx-forum at nginx.us
Mon May 17 00:40:36 MSD 2010


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




More information about the nginx mailing list