Serving multiple domains with the same NAS

QNAP NAS solution for server virtualization and clustering/HA/FT
Post Reply
Roadrunner67
Starting out
Posts: 12
Joined: Fri Sep 30, 2016 3:24 am

Serving multiple domains with the same NAS

Post by Roadrunner67 » Thu Feb 27, 2020 4:17 pm

On my TS-253A I currently 'only' have access to the standard user interface from outside my network.
https://mydomain.myqnapcloud.com points to my static IP, and my router has a firewall rule, which forwards port 443 to 192.168.200.6 which is the internal address of my QNAP.
That all works as it should.
Now I have spun up a Docker container on 192.168.200.18, which I would like to expose to https://identity.someotherdomain.com.
My Idea was to spin up another container with an Nginx reverse proxy, and change the firewall rule to forward 443 (and 80) to the reverse proxy.
Does anyone have experiences with such a setup?

How do I configure nginx to forward traffic intended for https://mydomain.myqnapcloud.com to https://192.168.200.6
and traffic intended for https://identity.someotherdomain.com to https://192.168.200.18

dolbyman
Guru
Posts: 19092
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: Serving multiple domains with the same NAS

Post by dolbyman » Sun Mar 01, 2020 7:48 am

exposing the web interface of you nas is a bad idea..last hack of an exposed system was this morning

johnripper
Experience counts
Posts: 1357
Joined: Sun Aug 14, 2011 5:13 am

Re: Serving multiple domains with the same NAS

Post by johnripper » Sat Jun 06, 2020 3:46 am

he doesnt want to expose the webinterface directly, but a reverse proxy via nginx. Anyway I am not sure if this a good idea.

@Roadrunner67:
What your looking for is the vhost w/proxy_pass:
https://www.redelijkheid.com/blog/2017/ ... erse-proxy

Post Reply

Return to “Server Virtualization & Clustering”