You are looking at posts that were written in the month of May in the year 2012.
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Mar | ||||||
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 | |||
Posted on May 27th, 2012 by thiswayup.
Categories: dev.
I use MAMP for my OSX dev, the regular edition doesn't include the easy way to add to the host file (so that you can have a dev domain eg mylocal.dev) and virtualhost to the apache.conf, you need to do it manually. But luckily it is very easy, this is for my future self to save finding it on google.
sudo cp /etc/hosts /etc/hosts.bak sudo nano /private/etc/hosts
location: Applications/MAMP/conf/apache/httpd.conf Add a virtual host example entry: <VirtualHost 127.0.0.1> ServerName hib.local DocumentRoot "/Users/joelee/Sites/hub.local/web" DirectoryIndex index.php </VirtualHost>