~emersion/kimchi

81efed75fb4396e2201907e6adc9ac1631cd0d72 — Jonathan Halmen 2 months ago f4a3b3f
Fix path for site configs with subtree roots

This makes site configs such as the following work:

    site foo.example.org/foo/ {
        file_server /path/to/index/html/
    }
1 files changed, 1 insertions(+), 1 deletions(-)

M directives.go
M directives.go => directives.go +1 -1
@@ 115,7 115,7 @@ func parseSite(srv *Server, dir *scfg.Directive) error {
			}
		}

		ln.Mux.Handle(pattern, handler)
		ln.Mux.Handle(pattern, http.StripPrefix(path, handler))
	}
	return nil
}