I am getting redirect loop errors when items are added to the cart or checkout screens. Please see what I have done to attempt to resolve this issue.
I have enabled SSL via the web.config and modified the WebHelper.cs with
---------------
/// <summary>
/// Gets a value indicating whether current connection is secured
/// </summary>
/// <returns>true - secured, false - not secured</returns>
public virtual bool IsCurrentConnectionSecured()
{
bool useSsl = false;
if (_httpContext != null && _httpContext.Request != null)
{
//useSsl = _httpContext.Request.IsSecureConnection;
//when your hosting uses a load balancer on their server then the Request.IsSecureConnection is never got set to true, use the statement below
//just uncomment it
//useSSL = _httpContext.Request.ServerVariables["HTTP_CLUSTER_HTTPS"] == "on" ? true : false;
useSSL = HttpContext.Current.Request.Headers["X-FORWARDED-PROTO"].ToLower() == "https";
}
return useSsl;
}
------------------
Compiled a fresh copy to the server and still having the issues... I also tried:
useSSL = _httpContext.Request.ServerVariables["HTTP_CLUSTER_HTTPS"] == "on" ? true : false;
Same results.
My EC2 ELB is configured to translate
outside 443--->80 WebServer inside
I need to launch this ecom site very soon and I don't want to place the SSL cert on the actual servers.
Thanks in advanced for your help on this issue.
NOP V2.50