Proxy subdomain apache

Posted June 20, 2018 1.2k views
ApacheUbuntu 16.04


We made an web app that we host on a droplet on DO and big files/client files in a in-house server,
everything is up and working, we made an subdomain in DO to point the in-house server since we have an dynamic ip that updates the ip automatly with an script.

Everyone from outside the network can view the contents of the in-house server except for users in the same network of the server, how can i reverse proxy my subdomain so users in the same network can view the files in the web app? (I know i can make a hairpin NAT to solve this but we don’t have complete access to the microtik router)

The configuration i wanna set is the follow:

UserSameNetwork -> DigitalOcean -> LocalServer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Difficult to say without knowing how your subdomain/app works exactly.

If you run a local DNS server on the local network which the clients use for DNS resolution, maybe create a DNS record for the subdomain on the DNS server that points to the server IP locally (i.e. private network IP). So the local users connect directly to the server.