Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
153 views
in Technique[技术] by (71.8m points)

apache - 无法访问.htaccess文件(Can't access .htaccess file)

I've installed a application on my RHEL 7.x server.

(我已经在RHEL 7.x服务器上安装了一个应用程序。)

During a installation wizard which I reach over a common browser, the application will test some components of the installation.

(在通过通用浏览器访问的安装向导期间,该应用程序将测试安装的某些组件。)

During this "system-checks" I get the error message test on .htaccess file failed.

(在此“系统检查”期间,我对.htaccess文件的错误消息测试失败。)

In the httpd.conf are the permission set :

(在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>

What confuses me a bit is that the .htaccess file is lost after a restart of httpd.

(令我感到困惑的是,重新启动httpd后,.htaccess文件丢失了。)

service it always disappears, so it is no longer visible.

(服务,它总是消失,因此不再可见。)

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

Also the Selinux permissions and the permissions inside /var/www/html are correct.

(Selinux权限和/ var / www / html中的权限也正确。)

I don't know more, please let me know if you need more information.

(我不知道更多,如果您需要更多信息,请告诉我。)

Best regards, Nico

(最好的问候,尼科)

  ask by Nico translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...