A small solution in follow up of the document root issue drm brought up in a previous post. Setting the correct $_SERVER["document_root"] value for your vhost_alias site.
Posts Tagged ‘apache’
Running a local wildcard DNS server on your mac
12
Jun
Ever since I’am using my macbook pro with XAMPP as my primary development workhorse, i’ve been playing around with the hosts file every single time I started a new project. Until last week, where i suddenly realized that it was a rather stupid practice. After all i’am running a system that comes preinstalled with named. Yeah i know, a bit late… But still, sat down for a few minutes to (re-)read about zone files and how to get an wildcard DNS server up and running.
The goal was to have *.dev.local pointing to 127.0.0.1 so i only needed to add/alter my apache vhosts.conf to fit my project needs.