I have a Mac Mini Server with Open Directory, File Sharing/WebDAV, VPN, and Website services running.
I can view files from my Mac on my iPad remotely when connected to my VPN. I can also view my website locally. I did not port forward port 80 on my router.
However, I have since requested a static IP with my ISP and purchased a domain name. I have the domain name A record pointed to my IP address.
How can I view my website hosted on my Mac by using my domain name ONLY when I'm connected through VPN? I don't want anyone going to mydomain.com and seeing my site unless they are joined to my VPN.
Right now I can type in the local IP to see the site, but I prefer to use my domain name instead.