|
@@ -2,7 +2,6 @@ package dpcore
|
|
|
|
|
|
import (
|
|
import (
|
|
"errors"
|
|
"errors"
|
|
- "fmt"
|
|
|
|
"io"
|
|
"io"
|
|
"log"
|
|
"log"
|
|
"net"
|
|
"net"
|
|
@@ -369,9 +368,6 @@ func (p *ReverseProxy) ProxyHTTP(rw http.ResponseWriter, req *http.Request, rrr
|
|
if err == nil {
|
|
if err == nil {
|
|
locationRewrite = lr
|
|
locationRewrite = lr
|
|
}
|
|
}
|
|
- fmt.Println(originLocation, rrr, locationRewrite)
|
|
|
|
- //locationRewrite = strings.ReplaceAll(locationRewrite, rrr.ProxyDomain, rrr.OriginalHost)
|
|
|
|
- //locationRewrite = strings.ReplaceAll(locationRewrite, domainWithoutPort, rrr.OriginalHost)
|
|
|
|
} else if strings.HasPrefix(originLocation, "/") && rrr.PathPrefix != "" {
|
|
} else if strings.HasPrefix(originLocation, "/") && rrr.PathPrefix != "" {
|
|
//Back to the root of this proxy object
|
|
//Back to the root of this proxy object
|
|
//fmt.Println(rrr.ProxyDomain, rrr.OriginalHost)
|
|
//fmt.Println(rrr.ProxyDomain, rrr.OriginalHost)
|