DEV Community

Ankitarpana
Ankitarpana

Posted on

Nignx ssl certificates error

Hi Guys,

I have hosted two sites on a single server both are django applcations. I have my one site hosted on the domain and other on the public ip of the server.

For domain i am using the certificate from letsencrypt and for IP based site I am using the selfsigned certificates from openssl.

The issue I am facing is that when I hit the site hosted on public ip it loads the certificate of the site hosted on domain.
We are using seperate virtual hosts file for both the sites.

Please help me out I am new to the nginx.

Top comments (0)