Can I really assume location match start with / ?

Edho Arief edho at myconan.net
Fri Nov 9 04:01:45 UTC 2012


On Fri, Nov 9, 2012 at 11:00 AM, Ryan Chan <ryanchan404 at gmail.com> wrote:
> From the doc, it said..
>
> ==========
>
> location  / {
>   # matches any query, since all queries begin with /, but regular
> ==========
>
>
> But I am wondering, if it always start with /, why not use ^ instead?
>

That'd require regexp.



More information about the nginx mailing list