Answer the question
In order to leave comments, you need to log in
How to set the port for the server on beget?
Hello everyone, I ran into a problem, posted a site on the beget service, I rented a vps, connected via ssh, uploaded all the files from github. Everything works well, but in order for the site to open, I need to write at the end of my ip address the port number on which the client part of the react application is running, that is, I write constantly: 3000 at the end of the url, please tell me how to fix this, I will be very grateful
Answer the question
In order to leave comments, you need to log in
I advise you to install nginx, connect to it from the outside, and then nginx will be able to proxy requests to other servers and ports through its settings, for example, like this:
proxy_pass http://127.0.0.1:3000;
nginx.org/en/docs/http/ngx_http_proxy_module.html#...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question