diff options
author | Omar Polo <op@omarpolo.com> | 2021-02-06 14:36:26 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2021-02-06 14:36:26 +0000 |
commit | daac4a945284dd0f8baa3f35234981f7bc0426da (patch) | |
tree | 5eb0d83e02ed2843c1f1fa51d1daa3d46bc4932c /server.c | |
parent | 4125c94fda179de8d425ce3fb70972015c80c7a4 (diff) |
fix auto index precedence
Diffstat (limited to 'server.c')
-rw-r--r-- | server.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -121,7 +121,7 @@ vhost_auto_index(struct vhost *v, const char *path) if (v == NULL || path == NULL) return 0; - for (loc = v->locations; loc->match != NULL; ++loc) { + for (loc = &v->locations[1]; loc->match != NULL; ++loc) { if (!fnmatch(loc->match, path, 0)) { if (loc->auto_index != 0) return loc->auto_index == 1; |