更改 web root apache mac OS X [英] change web root apache mac OS X

查看:25
本文介绍了更改 web root apache mac OS X的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在 apache 中更改我的 Web 根目录,由于某种原因它指向/Sites/folder1/folder2 而不是指向/Sites.我配置并更改了我的 apache<目录/Users/saad/Sites">DocumentRoot/Users/saad/Sites重新启动我的 apachectl 还是什么都没有.

I cant change my web root in apache, for some reason it points to /Sites/folder1/folder2 instead of it pointing to /Sites. I configured and change my apache <Directory "/Users/saad/Sites"> and DocumentRoot /Users/saad/Sites restarted my apachectl and still nothing.

推荐答案

我去/etc/apache/users/saad.conf 并以www.x.dev"这种形式在我的顶部添加了虚拟主机虚拟主机列表.这暂时解决了这个问题.希望这有帮助

I went to /etc/apache/users/saad.conf and added the virtual host in this form "www.x.dev" to the top of my virtual hosts list. this temporarily fixed the problem. hope this helps

这篇关于更改 web root apache mac OS X的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆