【发布时间】:2015-05-24 21:42:11
【问题描述】:
抱歉,如果我的解释不完整或格式错误,我是 Ubuntu 新手。而且不是真正的计算机用户(只是前端开发人员):
我正在尝试在我的计算机上设置一个虚拟主机,但我的浏览器中不断出现 403 错误,我无法到达 http://mywebsite.local,并且 apache2 错误日志不断显示:
(13)Permission denied: [client 127.0.0.1:48889] AH00035: access to / denied (filesystem path '/media/leonsayshi/DATAS') because search permissions are missing on a component of the path
我希望我的工作文件夹位于 /media/leonsayshi/DATAS/www (其中 DATAS 是我已安装的分区)和我的 DATAS/ 中的 ls -l 命令和www/ 显示:
drwxrwxrwx 5 leonsayshi leonsayshi 4096 mars 21 13:13 DATAS
和
drwxrwxrwx 3 leonsayshi leonsayshi 4096 mars 21 14:55 www
这是我的 mywebsite.local.conf 文件的内容(已使用 sudo a2ensite mywebsite.local.conf 启用):
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName mywebsite.local
ServerAlias www.mywebsite.local
DocumentRoot /media/leonsayshi/DATAS/www/mywebsite/www/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /media/leonsayshi/DATAS/www/mywebsite/www/>
Order allow,deny
Allow from all
AllowOverride FileInfo
Require all granted
</Directory>
</VirtualHost>
有任何想法,或缺少任何信息吗? 提前非常感谢!
【问题讨论】: