MAMP htdocs在不同的驱动器上(MAMP htdocs on different drives)

编程入门 行业动态 更新时间:2024-10-25 14:23:45
MAMP htdocs在不同的驱动器上(MAMP htdocs on different drives)

所以我升级了我的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.

更多推荐

本文发布于:2023-08-02 04:09:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1368542.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:器上   MAMP   htdocs   drives

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!