Answer the question
In order to leave comments, you need to log in
Dns resolve to different ports?
Decided to deal with DNS.
I do not quite understand the following situation. There is a machine (1.2.3.5) running a web server (80) and an X application (6105), there are also domains example.ru and app.example.ru
How to make example.ru resolve to 1.2.3.5 :80 and app.example.ru in 1.2.3.5:6105?
Answer the question
In order to leave comments, you need to log in
No way. The domain does not resolve to ports, it only resolves to IP
Redirect you need to do not on the DNS, but on your web server.
For example, the application should not access domain.com , but domain.com/app
Accordingly, the web server can be easily adjusted so that everything that comes to the app is redirected to domain.com:6105 or domain.com:6105/app
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question