As a web developer, I love the fact that my work machine can run apache, mysql and php. It makes my working life so much easier than all that ftp’ing then testing. It becomes even more important when you are working with Subversion; I think it good practice to work on a particular bit of a project until it is basically working, before those changes are committed. So my set up is that my SVN working copies become my apache docroots.
So, I usually have Apache 2 set up (along with MySQL, and PHP), via MacPorts, and using ‘dynamically configured mass virtual hosting‘.
This basically means that any calls to my local apache server will look in my sites folder for a directory with the same name as the requested domain name. In order to get the domains working under Mac OS X Tiger, I would just edit /etc/hosts pointing each domain to 127.0.0.1, then restart lookupd, and the whole system would work.
Great … except when Apple developed Leopard, they removed lookupd and thus, my means of pointing my local domains to my local server. Read on for the answer …
Technorati Tags:
developing, how to, Mac, osx, software, tips, tutorials, leopard