Repository: incubator-trafficcontrol Updated Branches: refs/heads/master 78d338ad8 -> 0bec96fea
bypass reverse proxy on TLS and url_sig requests Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/95926544 Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/95926544 Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/95926544 Branch: refs/heads/master Commit: 959265444899096f9c25a05deb04238d9cb17a70 Parents: 78d338a Author: Derek Gelinas <derek_geli...@cable.comcast.com> Authored: Thu Aug 10 16:08:07 2017 +0000 Committer: Jeff Elsloo <jeffrey_els...@cable.comcast.com> Committed: Mon Aug 14 08:54:38 2017 -0600 ---------------------------------------------------------------------- traffic_ops/bin/traffic_ops_ort.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/95926544/traffic_ops/bin/traffic_ops_ort.pl ---------------------------------------------------------------------- diff --git a/traffic_ops/bin/traffic_ops_ort.pl b/traffic_ops/bin/traffic_ops_ort.pl index d567849..e5b551c 100755 --- a/traffic_ops/bin/traffic_ops_ort.pl +++ b/traffic_ops/bin/traffic_ops_ort.pl @@ -1414,7 +1414,10 @@ sub lwp_get { $request = $uri; ( $log_level >> $DEBUG ) && print "DEBUG Complete URL found. Downloading from external source $request.\n"; } - + if ( ($uri =~ m/sslkeys/ || $uri =~ m/url\_sig/) && $rev_proxy_in_use == 1 ) { + $request = $to_url . $uri; + ( $log_level >> $INFO ) && print "INFO Secure data request - bypassing reverse proxy and using $to_url.\n"; + } $response = $lwp_conn->get($request, %headers); $response_content = $response->content; @@ -2952,3 +2955,4 @@ sub log_level_to_string { } } } +