Can I really assume location match start with / ?

Ryan Chan ryanchan404 at gmail.com
Fri Nov 9 04:00:23 UTC 2012


>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?

e.g.

location  ^/ {
location ^/documents/ {



More information about the nginx mailing list