Forum: NGINX Can I really assume location match start with / ?

Posted by Ryan Chan (Guest)
on 2012-11-09 05:01
(Received via mailing list)
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/ {
Posted by Edho Arief (Guest)
on 2012-11-09 05:02
(Received via mailing list)
On Fri, Nov 9, 2012 at 11:00 AM, Ryan Chan <ryanchan404@gmail.com> 
wrote:
>
That'd require regexp.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.