The original post: /r/nginx by /u/ugurolsun on 2024-09-05 08:27:45.
Hello guys i have a question.
I will explain my structure:
I have a proxy nginx server it’s ip is 192.168.1.10
I have 2 different websites abc.example.com and def.example.com their respective ips are 192.168.1.11 and 192.168.1.12
Created proxy nginx server as main server and i gave dns name of these 2 sites for 192.168.1.10 and it is working as intended i can reach both of them.
My question is when i want to ftp or ssh to one of these servers (abc and def servers) via their dns name it is also going to the proxy server. I know that i can use their ip adresses for ssh or ftp connection but is there a way to create such a thing.
Like when i type abc.example.com on browser it will go first proxy (192.168.1.10) and then reach main server (192.168.1.11) but when i try to ssh or putty to abc.example.com to reach directly main server (192.168.1.11)
Thank you for your answers