Score:0

Mixed content error nginx+docker container

cn flag

I have an EC2 with Nginx setup & there are a few containers running inside. There's a Node JS gateway which is serving some of the requests in a webpage hosting in this Nginx server. Nginx is not a container - FYI. While we are able to load the website using https://domainname.com, while doing a refresh, we see some errors in the developer console for some of the elements within the page. The error is as shown in the screenshot attached. I have put redirection in the Nginx so that any http requests are redirected to https, but these 4 or 5 components are not working. I am not sure what is the issue here, and how to resolve. However, I am confident someone might have faced the same issue.

Requesting immediate support here.

enter image description here

in flag
Your backend server should be configured to generate the proper urls. Most servers allow to configure a base url for this.
serverstackqns avatar
cn flag
@GeraldSchneider, thanks for the comment. But where should this config be done? in nginx? Do you've some form of sample which can help me please?
in flag
It can be done [in nginx](https://serverfault.com/a/1035017/38644), but it should be done in the backend server configuration. Nobody can tell you how without knowing what you are running as backend servers.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.