|
@@ -354,7 +354,7 @@ func (p *ReverseProxy) ProxyHTTP(rw http.ResponseWriter, req *http.Request, rrr
|
|
|
//Full path
|
|
|
//Replace the forwarded target with expected Host
|
|
|
fmt.Println(rrr.ProxyDomain, domainWithoutPort, rrr.OriginalHost)
|
|
|
- lr, err := replaceLocationHost(locationRewrite, rrr.OriginalHost, rrr.UseTLS)
|
|
|
+ lr, err := replaceLocationHost(locationRewrite, rrr.OriginalHost, req.TLS == nil)
|
|
|
if err == nil {
|
|
|
locationRewrite = lr
|
|
|
}
|