On 5/31/11, karabaja <nginx-forum@nginx.us> wrote:
> syntax would be in nginx config or if it is even possible to match both
> statements.
It is possible and there are different ways to match two conditions. I
like this one:
geo $google {
default 0;
66.0.0.0/8 1;
}
map $http_user_agent $googlebot {
default 0;
~google $google;
}
server {
location / {
if ($googlebot) {
...
}
}
}
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx