K
K
kuzubina2020-08-10 20:30:41
Nginx
kuzubina, 2020-08-10 20:30:41

How to set up nginx server on different ports for different tasks?

Plz tell me how to do it better?
There is a VPS server with nginx on which express.js runs on port 5000
There is a third-party hosting domain with an ssl certificate that redirects all requests to the VPS and communicates with api through nginx
Now you need to install viber-bot on the VPS that works via webhook.
How can I configure nginx so that I can bind the vibera webhook to a domain with an ssl certificate and it redirects to my VPS but to a different port, not where express.js is running?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2020-08-10
@kuzubina

And the difficulty with proxy_passʻom at what stage arises? Breed as usual - by ports or by names.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question