Web 应用程序更新后出现权限问题(Drupal)

Web 应用程序更新后出现权限问题(Drupal)

我刚刚将 Drupal 8 升级到 8.1.10,遇到了一个我不明白的问题。

我知道 Drupal 会重写权限,但我不使用 .htaccess 文件。我有必须访问的文件夹(并且只拒绝子文件夹)。在我的 apache 配置中,有:

<Directory /var/www/webservice>
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted
</Directory>

<Directory /var/www/webservice/restricted>
        Options -Indexes
        AllowOverride None
        Require all denied
</Directory>

这使我可以访问 webservice 文件夹中除受限子文件夹之外的所有内容。此文件夹不是 Drupal 的一部分。我已重新启动 apache 服务器,并将文件的用户权限扩大到 775。没有任何变化,我可以像往常一样访问除 webservice 文件夹中的 php 脚本之外的所有内容。

为什么我会收到此文件的 403 禁止错误,在我更新 Drupal 之前它可以正常工作?

更新:

在更新之前我遇到了 SSL 问题,我已修复该问题,请阅读. 现在,Apache 错误日志显示:

[Mon Oct 03 11:18:06.410323 2016] [ssl:info] [pid 2384] [client x.y.z.w:1172] AH01964: Connection to child 3 established (server www.domain.com:443)
[Mon Oct 03 11:18:06.410656 2016] [ssl:debug] [pid 2384] ssl_engine_kernel.c(2096): [client x.y.z.w:1172] AH02043: SSL virtual host for servername www.domain.com found
[Mon Oct 03 11:18:06.410673 2016] [core:debug] [pid 2384] protocol.c(1891): [client x.y.z.w:1172] select protocol from , choices=h2,spdy/3.1,http/1.1 for server www.domain.com
[Mon Oct 03 11:18:06.410684 2016] [ssl:debug] [pid 2384] ssl_engine_kernel.c(2096): [client x.y.z.w:1172] AH02043: SSL virtual host for servername www.domain.com found
[Mon Oct 03 11:18:06.442414 2016] [ssl:debug] [pid 2384] ssl_engine_kernel.c(2023): [client x.y.z.w:1172] AH02041: Protocol: TLSv1.2, Cipher: ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
[Mon Oct 03 11:18:06.451305 2016] [ssl:debug] [pid 2384] ssl_engine_kernel.c(354): [client x.y.z.w:1172] AH02034: Initial (No.1) HTTPS request received for child 3 (server www.domain.com:443)
[Mon Oct 03 11:18:06.451784 2016] [authz_core:debug] [pid 2384] mod_authz_core.c(809): [client x.y.z.w:1172] AH01626: authorization result of Require all granted: granted
[Mon Oct 03 11:18:06.451800 2016] [authz_core:debug] [pid 2384] mod_authz_core.c(809): [client x.y.z.w:1172] AH01626: authorization result of <RequireAny>: granted
[Mon Oct 03 11:18:11.456991 2016] [ssl:info] [pid 2384] (70007)The timeout specified has expired: [client x.y.z.w:1172] AH01991: SSL input filter read failed.
[Mon Oct 03 11:18:11.457095 2016] [ssl:debug] [pid 2384] ssl_engine_io.c(1016): [client x.y.z.w:1172] AH02001: Connection closed to child 3 with standard shutdown (server www.domain.com:443)

当我尝试访问 PHP 脚本时:

x.y.z.w - - [03/Oct/2016:11:18:06 +0000] "GET /webservice/inline.php HTTP/1.1" 403 752 "-" "Mozilla/5.0 (Windows NT 6.1; rv:49.0) Gecko/20100101 Firefox/49.0"

修复 SSL 错误后,我升级了 Drupal,但又出现了该错误(可能是修复错误)。但这不是错误,这是信息级别。这是记录器噪音还是指出了我的问题?

相关内容