N
N
Nozistance2021-09-26 19:14:07
Domain Name System
Nozistance, 2021-09-26 19:14:07

How to forward different domains to permanent ip: different port?

Three domains are set to the same dedicated ip:

test1.com
test2.com
test3.com

And it is necessary that each domain be redirected to a specific port:

from test1.com to 1.2.3.4:8080
from test2.com to 1.2. 3.4:7070
from test3.com to 1.2.3.4:6060

How can I do this without too much difficulty and crutches?

The server is running on Ubuntu 20.04

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Dmitriev, 2021-09-26
@Nozistance

Use nginx reverse proxy or haproxy

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question