What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

One Internet IP talking to two internal servers

jsigned

New Around Here
I hope I'm in the right place for this question. I want to setup two physical servers with URL's pointed to them, but I only have one internet ip address. Is there a software or piece of gear that can sit on the internet and route the HTTP/HTTPS/FTP traffic to the correct internal server?
 
The best way is probably to use nginx on your router as a reverse proxy.

But it will only work for http, I don't think it's possible for ftp or even https.

When for example a ftp clients connects it connects to an IP-address and a port, there is no way to know what hostname the client used to get the IP-address. With http the client (normally today) includes the hostname in the request, with https the connection is encryted so I'm not sure it works as you want to. It will have to be nginx that provides the SSL encryption if it is going to be able to intercept the hostname from the request.
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top