How do you configure MAMP to manage/host multiple websites at one time for development?
feedback
|
Change your default listening portGo to Set up your local hosts fileEdit your hosts file so that you have some domains that will resolve to your local web server. From Terminal, type
Save the file and exit (Ctrl+O, enter, Ctrl+X). Add Virtual Hosts to your Apache configurationOpen up
Restart ApacheStop Servers and then Start Servers on MAMP. Now you should be able to visit: http://local.example.com/ and http://local.example.net/ | |||||||
feedback
|
|
I don't have the reputation to comment, but I just want to point out that according to this you want to avoid editing the conf files with TextEdit: Virtual hosts with MAMP | |||
|
feedback
|
|
Re: textedit- Depends on what’s in the user directory. Some things don’t do well with rtf; just set textedit to ‘plain text’. | |||
|
feedback
|
|
Phil - I am getting closer I believe. What is the format for /Users/YOURNAME/sites/example-b ? Does this become /Users/JoesMac/sites/joetaxpayer.com ? When I go to local.joetaxpayer.com I get the doc folder where the web server was from original Mac settings, not the MAMP installation. When I try to change Apache to port 80 I get an error. I am running MAMP Pro, by the way, and struggling to get the multi-option working. | |||
feedback
|