所以我升级了我的MacBook Pro以使用ssd + hdd混合驱动器设置。 在我的混合驱动器设置之前,MAMP和htdocs位于根Application文件夹中。 现在,我希望MAMP能够保留在我的ssd上的根文件夹中,但是要阅读将位于hdd中的Web应用程序。 我试图进入MAMP首选项> apache并将htdocs的目录设置到另一个卷但它似乎不起作用。 这甚至是可能的,还是有其他我不知道的解决方案?
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?
最满意答案
虚拟主机 您可以在httpd.conf中按主机手动执行此操作
例如
<VirtualHost *:80> ServerName example.dev DocumentRoot "/Users/joe/webroot/dangermoose.dev" </VirtualHost>阅读本文 | 第3步 - 虚拟主机 和更有用的提示。
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.
更多推荐
发布评论