diff options
author | Omar Polo <op@omarpolo.com> | 2021-01-30 12:04:20 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2021-01-30 12:04:20 +0000 |
commit | 6016a593a32c4f3f27ed3e7892a1595d631fcbef (patch) | |
tree | efbf517aa47a564c87138c55e09404bc17d909d8 /gmid.1 | |
parent | 601bc1cc3797c8afc6610478cab9004be7a2c7b0 (diff) |
invert the location precedence: first match wins
It's how httpd(8) does it, and it allows us to call fnmatch less time
Diffstat (limited to 'gmid.1')
-rw-r--r-- | gmid.1 | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -223,15 +223,15 @@ The .Pa path argument will be matched against the request path with shell globbing rules. -In case of multiple location statements in the same context, the last -matching location will be put into effect. -Therefore is advisable to match for a generic paths first and for more -specific ones later on. +In case of multiple location statements in the same context, the first +matching location will be put into effect and the later ones ignored. +Therefore is advisable to match for more specific paths first and for +generic ones later on. A .Ic location section may include most of the server configuration rules except -.Ic cert , Ic key , Ic root , Ic location No and Ic CGI . +.Ic cert , Ic key , Ic root , Ic location No and Ic cgi . .El .Sh CGI When CGI scripts are enabled for a directory, a request for an |