Cloudflare Flexible SSL and nopCommerce problem

1 2 >
Posted: May 30, 2016 at 1:32 PM Quote #168605
Hello,

I am using a Cloudflare flexible SSL (SSL on the public domain, clear text between Cloudflare server and mine).
I activated SSL from http://www.mywebsite.com/Admin/Store/Edit/1 page and a "Too many redirects error is thrown" error is thrown.

What is the guideline to properly configure this kind of case?

Thank you very much.
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: January 29, 2017 at 6:01 AM Quote #182488
I am also having the same problem

When turning on a stores "SSL Enable" and filling in the stores secure url (basically "https://<mystorename>.com") and click save, it becomes impossible to browse to the website.

I have had to revert is by manually doing it in the database!


What I am basically trying to achieve is redirection to SSL on all pages so Chrome doesn't moan...
(Currently using nop 3.40 but willing to go through the hassle (many customisations) of upgrading if necessary)

Any help apreciated...
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: January 29, 2017 at 7:33 AM Quote #182494
I think this may helps you!
https://www.nopcommerce.com/boards/t/43133/ssl-configuration-troubles.aspx#171186
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
I write code, article, tweets and answers on StackOverflow - not necessarily in that order.
Posted: January 29, 2017 at 7:59 AM Quote #182496
Divyang wrote:

Unfortunately not.
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: February 21, 2017 at 12:23 PM Quote #183734
Unfortunately you will need to edit the core code to get nopCommerce to work with Cloudflare Flexible SSL or buy an SSL and install it on Cloudflare and set SSL to full. As you can now do this for free sites too on Cloudflare.
This post/answer is useful
1
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: February 21, 2017 at 12:52 PM Quote #183737
That should say install on Cloudflare AND then install SSL on your server.
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: February 23, 2017 at 1:35 AM Quote #183834
Please try to apply this commit. Let me know if it helps
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Interested in the dedicated Premium support services provided by core developers? Please visit http://www.nopcommerce.com/supportservices.aspx

Regards,
Andrei Mazulnitsyn
Posted: March 04, 2017 at 3:41 PM Quote #184330
a.m. wrote:
Please try to apply this commit. Let me know if it helps


It will probably be after the release of 3.90 before I am in a position to try since I will need to perform a lot of customisation first... but will do!

BTW. If you need to perform an emergency release after the initial release as has happened a few times in the past... Please please please use a version scheme like MAJOR.MINOR.REVISION (where revision is an incremental number of the emergency release) as this has bitten me in the past...
This post/answer is useful
1
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: April 11, 2017 at 7:59 PM Quote #186402
leen3o wrote:
Unfortunately you will need to edit the core code to get nopCommerce to work with Cloudflare Flexible SSL or buy an SSL and install it on Cloudflare and set SSL to full. As you can now do this for free sites too on Cloudflare.


Thanks @leen3o. That did it. I had the same issue with Cloudflare and changing SSL from flexible to strict fixed it. And yes, you can now do full SSL on free websites too.
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: October 06, 2017 at 11:14 AM Quote #194287
If you don't want to deal with code changes and still want free cloudflare flexible cert to work in any nopcommerce version, you can add page rules in CF to always use https and add outbound rule below:

<outboundRules>
    <rule name="Rewrite external references to use HTTPS" preCondition="IsHTML">
      <match filterByTags="Script, Link, Img, CustomTags" customTags="HTML5Tags" pattern="^http://(.*)$" />
      <action type="Rewrite" value="https://{R:1}" />
    </rule>
    <preConditions>
      <preCondition name="IsHTML">
        <add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
      </preCondition>
    </preConditions>
    <customTags>
      <tags name="HTML5Tags">
        <tag name="Video" attribute="src" />
      </tags>
    </customTags>
  </outboundRules>

This will work without check in store configuration to useSSL and without forceSSL setting.
This post/answer is useful
1
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
1 2 >
Premium support services
  • Dedicated premium support services provided by core developers are intended for persons who run mission critical websites, work on projects with tight deadlines, or want to get dedicated support.
Professional services
  • Want to open a new store? Want to take your store to the next level? Need a custom extension? We can customize nopCommerce to fit your store perfectly. Request a quote to get started.