Question

So I upgraded my MacBook Pro to use an ssd + hdd mixed drive setup. Before my mixed drive setup, MAMP and htdocs sat in the root Application folder. Now, I want MAMP to be able to stay in the root folder on my ssd but read the web apps that will be located in the hdd. I've tried to go into MAMP preferences > apache and set the directory for htdocs into the other volume but it doesn't seem to work. Is this even possible or is there another solution that I am unaware of?

Was it helpful?

Solution

Virtual Hosts
You can do it manually per host in httpd.conf

e.g.

<VirtualHost *:80>
ServerName example.dev
DocumentRoot "/Users/joe/webroot/dangermoose.dev"
</VirtualHost>

Read this | Step 3 – Virtual Host
and more useful hints.

OTHER TIPS

If you are using the standard MAMP (3.0), the htdocs folder is located in /Applications/MAMP/htdocs. Delete the folder and replace it with a symlink to wherever you like. You might also copied the two files in the original directory to their new home.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top