0

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

serverstackqns
  • 764
  • 3
  • 16
  • 42
  • Your backend server should be configured to generate the proper urls. Most servers allow to configure a base url for this. – Gerald Schneider May 18 '23 at 16:07
  • @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? – serverstackqns May 19 '23 at 09:41
  • 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. – Gerald Schneider May 19 '23 at 09:45

0 Answers0