更改Web根目录的Apache的Mac OS X [英] change web root apache mac OS X

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

问题描述

我不能改变我的Web根目录在Apache中,由于某种原因,它指向/的/资料夹/资料夹,而不是它的网站指向/站点。
我配置和更改我的Apache
<目录/用户/萨阿德/网站>
的DocumentRoot /用户/萨阿德/网站
重新启动我的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根目录的Apache的Mac OS X的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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