In my company, we're using OpenVPN
to connect to our network for remote-working
We have a local server that our employees can access (so through the VPN too), which contains a lot of local websites served by Apache VHost
The problem is, we have domain to access to those websites (i.e thewebsite.company.com) but the ones who come from the VPN can't access them because Windows don't know how to map the domain with the IP address of the concerned Apache server
The workaround I found is to declare the mapping in the hosts
file of Windows, which works totally good, but is so not user-friendly and have to be effected in every desktops accessing through VPN
So, I wonder if there is a better method to configure that server-side so on Apache or OpenVPN ?