Open pete70 opened 11 years ago
I ran into a similar issue using Nginx in front of an iis farm of web servers (nginx was doing ssl offloading and acting as reverse proxy).
The problem is that you are creating a loop, where RR actually hits the SSL accelerator to fetch the content. The workaround for this are:
Hi,
First - thanks for the excellent library.
I am trying to use RR behind a SSL accelerator which offloads SSL work to the ssl appliance and only http request reaches the web server. The urls emitted and rendered in html still need to be https. There is no mix (as logged in another issue) - all traffic is https.
Since the host name (on SSL appliance) does not listens on port 80, RR is unable to fetch js files from the server thru http for minification.
Here is the error summary:
First errored on: 11/15/2012 5:51:32 PM Number: 1 Exception #1: There were errors reducing http://sslhost.mydomain.com/MyApp/Scripts/libs/jquery-1.7.1.min.js::htt... Exception #2: RequestReduce had problems accessing http://sslhost.mydomain.com/MyApp/Scripts/libs/jquery-1.7.1.min.js. Error Message from WebClient is: Unable to connect to the remote server Stack Trace#2: at RequestReduce.Utilities.WebClientWrapper.Download(String url, IEnumerable
1 requiredMimeTypes) in c:\RequestReduce\RequestReduce\Utilities\WebClientWrapper.cs:line 85 at RequestReduce.Utilities.WebClientWrapper.Download[T](String url) in c:\RequestReduce\RequestReduce\Utilities\WebClientWrapper.cs:line 35 at RequestReduce.Reducer.JavaScriptReducer.ProcessJavaScript(String url) in c:\RequestReduce\RequestReduce\Reducer\JavaScriptReducer.cs:line 56 at RequestReduce.Reducer.JavaScriptReducer.ProcessResource(Guid key, IEnumerable
1 urls, String host) in c:\RequestReduce\RequestReduce\Reducer\JavaScriptReducer.cs:line 32 at RequestReduce.Reducer.HeadResourceReducerBase`1.Process(Guid key, String urls, String host) in c:\RequestReduce\RequestReduce\Reducer\HeadResourceReducerBase.cs:line 37 at RequestReduce.Module.ReducingQueue.ProcessQueuedItem() in c:\RequestReduce\RequestReduce\Module\ReducingQueue.cs:line 162at System.Net.HttpWebRequest.GetResponse() at RequestReduce.Utilities.WebClientWrapper.Download(String url, IEnumerable`1 requiredMimeTypes) in c:\RequestReduce\RequestReduce\Utilities\WebClientWrapper.cs:line 62
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)