简体   繁体   English

您无权访问此服务器上的文件

[英]You don't have permission to access a file on this server

I use Apache under Fedora 我在Fedora下使用Apache

My httpd.conf looks like this: 我的httpd.conf看起来像这样:

<Directory /var/tmp/meta>
    Options -Indexes
    AllowOverride None
    Require all granted
</Directory>

I ran sudo chown -R apache:apache /var/tmp/meta , and when I try to access to http://localhost/var/tmp/meta/my_file.json I receive the error below: 我运行了sudo chown -R apache:apache /var/tmp/meta ,当我尝试访问http://localhost/var/tmp/meta/my_file.json ,出现以下错误:

You don't have permission to access /var/tmp/meta/my_file.json on this server. 您无权访问此服务器上的/var/tmp/meta/my_file.json。

Does anybody know how to fix this? 有人知道如何解决此问题吗?

试试这个chmod -R 777 /var/tmp/meta

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM