Recently I was testing some applications in a local kubernetes installation running in minikube , especially the access via an ingress. For this I defined the ingress endpoints using a custom otherwise not existing top level domain to produce names like application1.foobar or application2.foobar. (The list of officially registered TLDs can be found at https://www.iana.org/domains/root/db). Now in order to access these applications locally with an URL like http://application1.foobar/ I need to make the DNS resolution resolve this address to the IP address of my local minikube instance.
I just needed an apache webserver with PHP 5.6 and some virtual hosts on my Mac running OSX El Capitan. The native OSX apache version comes with an older version of PHP which has no xdebug support, so I shut it down with sudo apachectl stop Installation I installed the following ports: sudo port install apache2 php56 php56-apache2handler php56-xdebug Apache configuration After installing the following commands are needed: cd /opt/local/apache2/modules sudo /opt/local/apache2/bin/apxs -a -e -n php5 mod_php56.