Image URL's not changed to https after setup secure configuration

Monday, November 25, 2024 8:47:39 PM
  • Posted: Saturday, December 14, 2019 4:26 PM
  • 16
Hello,

we setup a secure Webshop and got some problems with the URLs. Everything works fine and the store is loading correctly (with all images), but in the html files the urls still use http instead of https. That leads to unsightly browser warnings.

So my question is, do we miss some configuration?

In the following you can find our configuration:

We use two virtual machines from  Digitalocean.
One of these is used as a central NGINX proxy server. The shop url is hosted there with our ssl configuration.
This proxy server passes the connection to the other machine over a private network. So our SSL termination is on the proxy server and the request will be forwarded via http to the second machine.

On the administration pane we check the secure option in the store settings and changed everything to https (store url, secure url).
After that we opened the appsettings.json file and set the UseForwardedHeaders to true.

We tried also different options with the URLRewrite and UseHttpsRedirection settings. But it didn't work.

King Regards

Dennis
0
  • Posted: Sunday, December 15, 2019 5:25 PM
  • Team
  • 152
Hello,

Please go to the Admin -> System -> System information and check value for "Http scheme is https" - is it True?

Regards
Krzysztof
0
  • Posted: Monday, December 16, 2019 6:23 PM
  • 16
Hello Krzysztof,

yes I checked it but it was http and false. But I just fixed the issue. I have to set the UseHttpXForwardedProto to TRUE.
After that change, the image url's were right and everything (PayPal, checkout) works fine.

Thank you for the fast reply!

King Regards

Dennis
0
  • Posted: Thursday, April 30, 2020 1:19 PM
  • 13
I grandnode 4.2 in Configuration => Store => SEO, there was a Force SSL for all site pages. But I could not find this option in grandnode 4.6.

Could you help me? because when I go through the website is not mapping to HTTPS.
0
  • Posted: Thursday, April 30, 2020 5:26 PM
  • Team
  • 152
Hi,
Please go to the Admin -> System -> System information and check value for "Http scheme is https" - is it True?
Regards
Krzysztof
0
  • Posted: Wednesday, September 2, 2020 1:03 PM
  • 4
Hello,
How to fix if value is not true?
sarac
0
  • Posted: Wednesday, September 2, 2020 4:58 PM
  • 953
Hello,

You should configure SSL correctly. If you are convinced that on your server everything is correctly. Please look at the appsettings.json file in App_Data folder and try to set the UseForwardedHeaders to true. Then in the Admin panel -> Configuration -> Stores, edit your store and add SSL secure URLs.
Best regards,
Patryk

GrandNode Team
0
back to top
Filters