授予Ubuntu上的apache2读取权限

时间:2020-06-28 05:00:41

标签: html linux ubuntu apache2 chmod

我正在尝试将Apache2 Web服务器上的文件夹作为iframe中的“索引类型”页面提供。我有

<Directory /media/user/Lambda/files/archive>
        Options Indexes
        AllowOverride All
        Require all granted
        Allow from all
</Directory>

Alias /archive /media/user/Lambda/files/archive

在我的.conf文件和

<iframe  src="/archive" title=" File Archive"></iframe>

在我的网页上。 iframe中显示的所有内容是 禁止访问。您没有访问此资源的权限。 我尝试弄乱chmod,但对Ubuntu和Linux却缺乏经验,特别是权限。我已经聚集了,我需要授予Apache2对/ media / user / Lambda / files / archive的读取权限,但是我对如何做到这一点完全迷失了。

只要这很重要,请运行ls -l / media / user / Lambda / files /返回:

drwxrwxrwx 1 neon neon 4096 Jun 27 16:05 archive

“霓虹灯”是我在这台计算机上的用户名

0 个答案:

没有答案
相关问题