Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
how do i know if nginx has correct configuration file? To fix and avoid mixed content error
I think I have configure the SSL and nginx correcty by using the guides.
However, the Http request scheme and http scheme is not set to htpps in the system information provided in the admin area.
As a result, all the images uploaded to the site got mixed content error. the images are actually available from an https URL when I change the http to https in the browser.
Mixed Content: The page at ’https://example.com/’ was loaded over HTTPS, but requested an insecure image ’http://example.com/content/images/thumbs/5e229c1241809003f1abbd1c.png’. This content should also be served over HTTPS.
I’m guessing the nginx server has some configuration file messing this up somewhere. how do I figure it out and fix this? In the appsetting.json file, I set “UseForwardedHeaders”: true but it didn’t fix the prob.
I have tried to solve this issues for about 4 days now. Appreciate if you can show me how to fix this.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×