gpt4 book ai didi

php - AH01630 : client denied by server configuration for files named dhtxxxx. xxx

转载 作者:行者123 更新时间:2023-12-04 01:57:47 24 4
gpt4 key购买 nike

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

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

<Directory /path/to/document/root >
AllowOverride All
Require all granted
</Directory>

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

[authz_core:error] [pid XXXX:tid XXXXXXX] [client xx.xx.xx.xx:XXXX] AH01630: client denied by server configuration: /path/to/document/root/dhtmlxGrid/skins/dhtmlxgrid_dhx_terrace.css

apachectl -vServer version: Apache/2.4.7 (Ubuntu)Server built: Oct 14 2015 14:20:21

最佳答案

我解决了这个问题

Require all granted

到我的/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>

关于php - AH01630 : client denied by server configuration for files named dhtxxxx. xxx,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34456316/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com