Answer the question
In order to leave comments, you need to log in
How to change url to url with port?
There is an application on Node Js that listens, for example, on port 8080. But in order to get there, you need to go to the address: site.ru:8080 Is it possible to do something so that when you go to site.ru/port, the server thinks that the address is actually site.ru:8080 ?
Answer the question
In order to leave comments, you need to log in
301 redirect, for example.
But the 80th port should be someone to listen.
You need to set up nginx or apache2 in reverse proxy mode.
Simple example for nginx:
location ^~ /8080/ {
proxy_pass http://127.0.0.1:8080/;
proxy_redirect default;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question