Answer the question
In order to leave comments, you need to log in
How to organize access to two storages from one IP address?
There are two network storages on the network behind NAT.
Access to these storages is organized for synchronization in the style of the Yandex-disk functionality.
The synchronization service works on port 8080 on both drives.
Through NAT, this port of the 1st drive, respectively, is forwarded.
And the external IP address is assigned a domain name, which is used to connect to the storage.
Please, tell me how you can implement a system like NGINX: so that with a certain request from the outside, access is carried out either to the 1st drive, or using a different domain name - to another.
Answer the question
In order to leave comments, you need to log in
NGINX/haproxy in reverse proxy mode.
If you will use NGINX - do not forget to set client_max_body_size - otherwise it is 1 mb by default.
If you have a synchronization system, then you can do it functionally, but not quite beautifully from an aesthetic point of view.
DNS:9090 -> NAT Port mapping -> IP_local_1:8080
DNS:9091 -> NAT Port mapping -> IP_local_2:8080
UPD: I didn't notice that you need different domain names.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question