修复 Drupal 所需的访问权限
- 时间
- 类型
- 私人通信
- 渠道
- 马尔蒂·马尔米通信
- 译文状态
- 简体中文全文
首次公开证据
打开首次公开证据查看 1 个交叉存档
来源说明
Published on GitHub in February 2024 as part of Martti Malmi's testimony in the COPA v. Wright trial
Drupal 的 .htaccess 文件使用 mod_rewrite 来实现不含 ? 参数的简洁 URL,但其中的更改被拒绝了,因为 Apache 没有配置“AllowOverride All”。要让 Drupal 按照我们希望的方式与另一个网站共存,这项配置是必需的。
我需要访问权限来修改这些文件并修复问题:
/etc/apache2/sites-available/default
/etc/apache2/sites-available/default-ssl
/etc/apache2/httpd.conf
以下是计划采用的修复方法。如果你亲自操作,也请仍然授予我访问 httpd.conf 的权限,以备日后需要再次修改。
在 /etc/apache2/sites-available/default 中 将第 2 处“AllowOverride None” 改为“AllowOverride All”
并在 /etc/apache2/sites-available/default-ssl 中 将第 2 处“AllowOverride AuthConfig” 改为“AllowOverride All”
替换
/etc/apache2/httpd.conf
为
/home/maintenance/httpd.conf
之后可能需要重新启动 Apache。 (apache2ctl graceful)
英文原文
展开英文原文
Drupal's .htaccess file which uses mod_rewrite to allow clean URLs without the ? parameter is not working because its changes are rejected because Apache is not configured with "AllowOverride All". This is needed to make Drupal coexist with the other site the way we want.
I need access to change these files to fix it:
/etc/apache2/sites-available/default
/etc/apache2/sites-available/default-ssl
/etc/apache2/httpd.conf
Here's the planned fix. If you do it yourself, please still give me access to httpd.conf in case I need to change it again later.
In /etc/apache2/sites-available/default change the 2nd instance of "AllowOverride None" to "AllowOverride All"
and in /etc/apache2/sites-available/default-ssl change the 2nd instance of "AllowOverride AuthConfig" to "AllowOverride All"
replace
/etc/apache2/httpd.conf
with
/home/maintenance/httpd.conf
This probably requires Apache to be restarted after. (apache2ctl graceful)