T
T
Torento203452021-06-11 00:38:04
Express.js
Torento20345, 2021-06-11 00:38:04

How to merge two servers together?

I read the article and decided to try to split the processing into two servers, but I have one domain address.
How can I make requests to the second server?
For example, one will work with the client side and return static.
And how can I set up receiving on the second requests in terms of sending messages so that they go already on the second past the first.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Shumov, 2021-06-11
@inoise

There is only one domain address - you can make subdomains, you can divide them by routes.
We take nginx and configure it as you want

D
Drno, 2021-06-11
@Drno

If nginx - then you need to configure Nginx proxy
Or use a subdomain...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question