【问题标题】:How can I give an apache server access to a mounted folder?如何让 apache 服务器访问已安装的文件夹?
【发布时间】:2021-06-14 02:42:48
【问题描述】:

我的 apache 服务器需要提供位于根文件夹中已安装目录中的文件。但是,当进程尝试访问该目录中的文件时,我得到...

PermissionError: [Errno 13] Permission denined 'path/to/file'

如何让 apache 服务器安全地访问文件?

我正在使用 CentOS 机器。

【问题讨论】:

    标签: apache centos webserver wsgi file-access


    【解决方案1】:

    首先卸载共享目录。

    chmod 775 chgrp apache

    重新安装。

    会是一种相对安全的方式。

    (假设您的 apache 用户主要组是 apache)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-02-09
      • 2023-01-28
      • 1970-01-01
      • 1970-01-01
      • 2020-10-21
      • 2019-12-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多