Amazon ELB redirect loop errors

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
11 years ago
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
11 years ago
Hi friend,

I have the same problem.
Is resolved ?


Tks,
Eduardo
11 years ago
No, still looking for a solutions to this issue.  The nopCommerce team have not provided any help on this issue.  I have since setup my servers with round robin DNS entries until the issue has been resolved.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.