Welcome! Log In Create A New Profile

Advanced

Re: anyone can help me to combine these 2 lines?

Joshua Jonah
May 16, 2010 05:42PM
Try this:

if ($http_user_agent ~ "^(AAA|BBB|^.+)$") {return 400;}


On 16/05/10 4:40 PM, kamanwu wrote:
> 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
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
>


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

anyone can help me to combine these 2 lines?

kamanwu May 16, 2010 04:40PM

Re: anyone can help me to combine these 2 lines?

Joshua Jonah May 16, 2010 05:42PM

Re: anyone can help me to combine these 2 lines?

kamanwu May 16, 2010 06:15PM

Re: anyone can help me to combine these 2 lines?

kamanwu May 16, 2010 06:23PM

Re: anyone can help me to combine these 2 lines?

Joshua Jonah May 16, 2010 06:28PM

Re: anyone can help me to combine these 2 lines?

Joshua Jonah May 16, 2010 06:36PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 280
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready