One Router, two server with Port 80/443 not possible?


Recommended Posts

Hi, I'm brand new here and have only had Unraid installed on my Intel NUC i7 for 2 days.

I already have 2 Docker (Nginx, Flame) and a VM (Ubuntu Server 22.04) running. On it Bitwarden/Vaultwarden with a SelfSignedCert.

Everything is running satisfactorily. I will look further into Unraid and try one or the other.

I have an ambiguity regarding my router settings. The two ports 80 and 443 routes to my Synology Nas. But if I understood unraid correctly, the ports 80/443 should point to unraid.

As far as I know, behind a router only one server can be addressed with 80/443.

Is there any trick/workaround to run 2 servers behind my router (from ISP, not very flexible)?

Best regards from Switzerland
Eric

Link to comment

If you want to host several websites behind one WAN IP, you must forward the dedicated port to a reverse proxy like Nginx, then proceed to assign different domain name to each reachable host.

Once the hosts named with a public domain name, set them into Nginx that will redirect the requests according to the desired domain name.

Link to comment

With an image

 

MYDOMAIN.COM -----> WAN ROUTER IP -----> PORT 80/443 FORWARDED TO NGINX -----> PRIVATE HOST FOR MYDOMAIN.COM

                                                                                                                        -----> PRIVATE HOST FOR MYDOMAIN2.COM

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.