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
Image URL's not changed to https after setup secure configuration
Monday, November 25, 2024 8:47:39 PM
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
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
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.
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
Patryk
GrandNode Team
0