![virtualhostx installation tutorial virtualhostx installation tutorial](https://i.ytimg.com/vi/OKrM1e4DAn0/maxresdefault.jpg)
Don’t let this happen to you.Īddendum: Lots of people have recommended Headdress for dealing with Apache config junk. Turn off Personal Web Sharing and everything’s fine again. Personal Web Sharing trumps MAMP, so to speak, and what you’re seeing is the other Apache installation on your system. Since it assumes that you’re using the built-in Apache rather than MAMP, it fires up Personal Web Sharing under System Prefs. Here’s the problem: VirtualHostX tries to be a little too helpful. Then I couldn’t figure out why I was seeing the default Apache page from /Library/WebServer/Documents rather than the servers I’d defined in nf, which used various things in my ~/Sites directory as their document roots. I don’t mind editing the hosts file in Terminal, but I generally prefer a nice GUI if I can get it, so I tried VirtualHostX to define my sites. You therefore have two choices: you can edit /etc/hosts by hand (pico or nano again!), or you can use VirtualHostX. So, those evolt instructions Dave linked to were all fine and good in Tiger, but in Leopard, the NetInfo Manager application is gone. I’ve seen other people report success with TextWrangler and TextMate. I’m guessing the problem has to do with Mac-specific line breaks, because when I edited them in Dreamweaver, which I’ve set to use UNIX-style line breaks, everything worked perfectly.
#VIRTUALHOSTX INSTALLATION TUTORIAL MAC#
After long hours of trial, error, and searching the MAMP forum (where this problem had been often reported but never resolved), I learned that it was happening because (like any fool Mac user) I’d opened it up in TextEdit.ĭon’t use TextEdit on your. However, after I’d edited nf, Apache wouldn’t start. I’ve slept since then.) Dave Shea to the rescue. (I had done this before… about three years ago.
![virtualhostx installation tutorial virtualhostx installation tutorial](https://i.ytimg.com/vi/HZ8LdRvZD3k/maxresdefault.jpg)
Setting up virtual hosts is really pretty straightforward, once you find a good set of instructions. I’m posting this so the next person doesn’t have to spend two days at it. I’ve spent the last two days setting up virtual hosts with MAMP on two different Macs, one Tiger and one Leopard.