F
F
FulTupFul2018-08-09 21:01:29
Nginx
FulTupFul, 2018-08-09 21:01:29

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

3 answer(s)
F
Fixid, 2018-08-09
@Fixid

nginx reverse proxy

F
FulTupFul, 2018-08-10
@FulTupFul

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

V
Val, 2018-08-30
@Desem

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 question

Ask a Question

731 491 924 answers to any question