AH01630:服务器配置拒绝客户端访问名为 dhtxxxx.xxx 的文件

Car*_*fla 3 php apache apache2.4

我不明白为什么 apache 会抛出此错误,文档根目录中的所有文件都可以访问,但是当我尝试访问名为 dhtxxxx.xxx 的文件时,如果我将文件名更改为“htmlxgrid_dhx_terrace.txt”,则会出现禁止错误。 css”它工作正常。

文档根目录有,require all granted所以这不是问题:

<Directory /path/to/document/root >
    AllowOverride All
    Require all granted
</Directory>
Run Code Online (Sandbox Code Playgroud)

这是我在日志中看到的内容:

[authz_core:error] [pid XXXX:tid XXXXXXX] [客户端 xx.xx.xx.xx:XXXX] AH01630:客户端被服务器配置拒绝:/path/to/document/root/dhtmlxGrid/skins/dhtmlxgrid_dhx_terrace.css

apachectl -v 服务器版本:Apache/2.4.7 (Ubuntu) 服务器构建时间:2015 年 10 月 14 日 14:20:21

aug*_*sto 5

我解决了这个添加

Require all granted
Run Code Online (Sandbox Code Playgroud)

到我的 /etc/apache2/site-available/d8.conf

这是 Drupal 8 的工作文件

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    ServerName local.d8
    ServerAlias *.local.d8  local.d8.*
    DocumentRoot /home/a/Public/d8
    <Directory /home/a/Public/d8>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride All
            Order allow,deny
            allow from all
            Require all granted
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/d8_error.log
    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel notice
    CustomLog ${APACHE_LOG_DIR}/d8_access.log combined
</VirtualHost>
Run Code Online (Sandbox Code Playgroud)