diff --git a/http.go b/http.go index 036a91b3e2043de856c3bc3336b35df3466829ca..beec4e6bc9e9a27e7df4e90581b4d784795a05b7 100644 --- a/http.go +++ b/http.go @@ -107,8 +107,9 @@ func (h *HttpRedirector) serveSource(w http.ResponseWriter, r *http.Request) { // Proxy the resulting connection. proxy := &httputil.ReverseProxy{ - Director: func(r *http.Request) { - r.URL.Host = masterAddr + Director: func(req *http.Request) { + req.URL.Host = masterAddr + req.URL.Path = mount.Name }, FlushInterval: time.Second, }