无法访问.htaccess文件

时间:2019-12-01 12:51:43

标签: apache .htaccess crm httpd.conf rhel

我已经在RHEL 7.x服务器上安装了一个应用程序。在通过通用浏览器访问的安装向导期间,该应用程序将测试安装的某些组件。在此“系统检查”期间,我对.htaccess文件的错误消息测试失败。

在httpd.conf中是权限集:

<Directory "/var/www/html/>
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.4/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride All

    #
    # Controls who can get stuff from this server.
    #
    Require all granted
</Directory>

让我感到困惑的是,重新启动httpd后,.htaccess文件丢失了。服务,它总是消失,因此不再可见。

Server version: Apache/2.4.6 (Red Hat Enterprise Linux)

另外,Selinux权限和/ var / www / html中的权限也是正确的。我不知道更多,如果您需要更多信息,请告诉我。

最好的问候, 尼科

0 个答案:

没有答案