|
@@ -27,7 +27,7 @@ func replaceLocationHost(urlString string, rrr *ResponseRewriteRuleSet, useTLS b
|
|
|
//Check if it is actually redirecting to example.com instead of a new domain
|
|
|
//like news.example.com.
|
|
|
if rrr.ProxyDomain != u.Host {
|
|
|
- fmt.Println(rrr.ProxyDomain, u.Host)
|
|
|
+ fmt.Println(rrr.ProxyDomain, u.Host, rrr.OriginalHost)
|
|
|
//New location domain not matching proxy target domain.
|
|
|
//Do not modify location header
|
|
|
return urlString, nil
|