Having issues with nginx / root captures (0.7.53)

Michael Shadle mike503 at gmail.com
Fri May 1 10:49:48 MSD 2009

2009/4/30 Igor Sysoev <is at rambler-co.ru>:

> The "break" after "return" costs nothing, but useless.
> Also, it' better to combine all check in single regex - it will be run
> much faster:
> if ($http_user_agent ~* "googlebot|looksmart|...") {
>       return 404;
> }

Thanks for the pointers. Originally I was doing it one at a time just
to keep it simple. I can clean that up.

More information about the nginx mailing list