1
I'd like to reach some internal services like the web client of my NAS (Synology DSM) through dedicated sub domains like https://nas.example.com
.
The services are fully running and accessible via internal IPs like https://192.168.0.200:5001
.
I obviously own the domain example.com
and have an Apache server up & running.
There are basically 2 reason why I'd like to achieve the above:
- The sub domain
nas.example.com
is easier to remember than192.168.0.200:5001
- I'd like to use my existing HTTPS certificates for
nas.example.com
which I can't with internal IP addresses
I've already played around with Apache's mod_rewrite
but had no success at all. Unfortunately I can't tell if this scenario is even possible with mod_rewrite
or if I just didn't configure it correct.
Some notes:
- The services should not be accessible from outside but only from within my LAN.
- Ideally, they should also be accessible via the sub domains when connected with the network from outside via SSH tunnels. Therefore a dedicated DNS server like
dnsmasq
is not what I'm looking for since that would only treat requests from within the LAN (I guess...).
Yeah, I missed that point – WhiteWind – 2018-02-19T09:55:39.923
FYI: If I could I would have also accepted your answer since it showed an easy alternative I wouldn't have thought of before but I chose the one with reverse proxy since it opens up more options for me. Thanks either way! – suamikim – 2018-02-20T07:33:04.283