Hey folks from serverfault, new to this network site.
I have a question regarding the configuration of a new server. Ubuntu 16.04 and Apache 2.4 will be running on the server.
We would like to allow external access to the server, which could be done with wildcard subdomains, so that http://testsite.dev.example.com
would route to /var/www/testsite
. I did that in another environment already with VirtualHost directives and I think I do know how it works.
But: How can I avoid that requesting http://testsite.dev.example.com
from the internal network will be handled over the internet? I would like to avoid a speed loss when developing.
Can dnsmasq
be used to recognize the *.dev.example.com
pattern and handle the request internally?
Thanks in advance!