修复 Drupal 所需的访问权限

中本聪SN-10122
阅读完整通信正文 · Martti Malmi · 2009-11-22 · 回复:有利于搜索引擎的网站迁移
相关通信Martti Malmi→ 中本聪原文来源 ↗原信文本(含旧引文) ↗

好的。

That's ok.

我在 11 月 23 日至 25 日会暂时离线。

I'll be afk 23.-25.11.

Drupal 的 .htaccess 文件使用 mod_rewrite,提供不带 ? 参数的简洁 URL,但它没有生效,因为 Apache 未配置“AllowOverride All”,导致文件中的设置被拒绝。我们需要这样设置,才能让 Drupal 按照我们的要求与另一个网站共存。

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.

我需要修改以下文件的权限,以便修复:
/etc/apache2/sites-available/default
/etc/apache2/sites-available/default-ssl
/etc/apache2/httpd.conf

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

下面是计划的修复方法。即使你自己来做,也请仍然给我 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.

在 /etc/apache2/sites-available/default 中把第二处“AllowOverride None” 改为“AllowOverride All”

In /etc/apache2/sites-available/default change the 2nd instance of "AllowOverride None" to "AllowOverride All"

并在 /etc/apache2/sites-available/default-ssl 中把第二处“AllowOverride AuthConfig” 改为“AllowOverride All”

and in /etc/apache2/sites-available/default-ssl change the 2nd instance of "AllowOverride AuthConfig" to "AllowOverride All"

将
/etc/apache2/httpd.conf
替换为
/home/maintenance/httpd.conf

replace
/etc/apache2/httpd.conf
with
/home/maintenance/httpd.conf

之后可能需要重新启动 Apache。 (apache2ctl graceful)

This probably requires Apache to be restarted after. (apache2ctl graceful)

译文校对、修订与纠错

当前版本尚未建立逐条校对状态记录。来源核验、历史审校与当前译文校对是不同事项。

查看历史审校与代表修订 →

译文内容版本:950236110751。用于比对文本,不代表校对等级或更新时间。

准备纠错说明

请填写对应原文、现译文、建议译法和理由。复制后通过你联系本站作者的渠道提交;此处不会自动发送。

来源
英文原标题

Access permissions required to fix Drupal

Martti Malmi 通信 · 收件人公开存档 ↗ 下载英文正文 COPA v. Wright Trial Exhibits ↗ 原始通信编号 #108 · 阅读完整往来 ↗ 记录编号 SN-10122

阅读字号

选择适合你的字号,之后阅读会继续使用。