Hello!
On Sun, Jul 13, 2014 at 11:32 PM, Lionel Duboeuf wrote:
> Just to have an advice, is it better to handle locations routing directly
> with nginx location directive or via ngx.re.match ?
> ( say i will have 10 locations at least)
Either approach is fine. It is up to you :)
IMHO, if you have many such regexes or want to manage the dispatch
rules dynamically, then putting everything into your Lua code should
be more maintainable.
Regards,
-agentzh