Can I really assume location match start with /?

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?


location ^/ {
location ^/documents/ {

On Fri, Nov 9, 2012 at 11:00 AM, Ryan C. [email protected]

That’d require regexp.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs