Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
The matter is that for the server the sheaf IP:port is necessary.
For the http server, we need port 80 (let's forget about httpS for simplicity).
So we need either an additional IP or something that can parse the name from the URL and proxy requests. We look towards nginx or something similar.
And node.js will already live on local addresses / other ports, for example, 127.0.0.1:81 and real_ip:81
ps. When using nginx, it will be possible to immediately give statics, and a lot of other interesting things.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question