07.23.08
Adding Virtual Hosts with MAMP on Leopard
Most of our audience can ignore this post, but for all those of you who are trying to setup named virtual hosts with MAMP on Leopard (and we know it’s alot of you), this might be helpful.
When you’re editing your /etc/hosts file, (sudo pico /etc/hosts), you would normally create an entry by saying…
127.0.0.1 mylocaldomain.dev
When you’re using MAMP, however, that won’t work correctly. It will connect you to your built in webserver (even if it’s not enabled, it seems), which really isn’t what you want. So instead of 127.0.0.1, you should use the odd looking address that is latest in the file,
fe9000::1%lo0 mylocaldomain.dev
The address will probably be different if you’re using a different. I’ve got no idea why they’re using such a strange address, but it seems to work nicely once you know to use it.