我具有以下权限:
drwxrwxr-x 10 paam paam 4096 Sep 5 18:25 extra_drive
子文件夹和文件夹中的文件具有相同的权限。
在我的*.conf
文件中,我有
Alias "/user_files" "/extra_drive"
但是,当尝试从 url 转到某个文件时
https://foo.org/user_files/9/20/blah.docx
我得到:
You don't have permission to access /user_files/9/20/blah.docx
我找到了。
在这个文件中:
/etc/apache2/apache2.conf
我不得不添加这个:
<Directory /extra_drive>
Options FollowSymLinks
AllowOverride None
Require all granted
</Directory>
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句