Answer the question
In order to leave comments, you need to log in
One ssl, one domain, two servers?
On one vps, which has one ip. There are two servers. One for the frontend on node which accepts api. The second one is for api processing. Stand on two different ports on 80 and 8000 respectively. Separately, it turns out to put https on each of them, but not together. Is it possible to put both servers using one ssl certificate and domain name?
Answer the question
In order to leave comments, you need to log in
None of the suggested options worked.
The problem is solved if the backend that distributes the api is placed on the api.example.com subdomain and another certificate is created
the scheme is not entirely clear, but if everything is within the same server / virtual machine, for example, configure nginx with ssl as a frontend, and from it the usual revers proxy (balancing) via the http protocol to a node that listens, for example, 127.0.0.1:8000. Why encrypt traffic twice within the same server?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question