E
E
evgeniy20242022-04-05 14:07:36
SSH
evgeniy2024, 2022-04-05 14:07:36

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

1 answer(s)
N
Nikolai Savelyev, 2022-04-05
@evgeniy2024

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 question

Ask a Question

731 491 924 answers to any question