>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/ {