Phabricator 安装.重写规则配置不正确 [英] Phabricator install. Rewrite rules are not configured correctly

查看:36
本文介绍了Phabricator 安装.重写规则配置不正确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遵循了 Phabricator 配置指南,并在安装后所有依赖项,我都面临以下消息:

I've followed the Phabricator Configuration Guide, and after installing all dependencies, I'm facing the following message:

Request parameter '__path__' is not set. Your rewrite rules are not configured correctly.

当我尝试访问 www.cleverbit.com.br/phabricator/webroot/

我按照文档建议的方式配置了一个 apache2.conf 文件:

I have a apache2.conf file configured just the way the docs suggested:

    <VirtualHost *>
  # Change this to the domain which points to your host.
  ServerName cleverbit.com.br

  # Change this to the path where you put 'phabricator' when you checked it
  # out from GitHub when following the Installation Guide.
  #
  # Make sure you include "/webroot" at the end!
  DocumentRoot /var/www/html/phabricator/webroot

  RewriteEngine on
  RewriteRule ^(.*)$          /index.php?__path__=$1  [B,L,QSA]
</VirtualHost>

<Directory />
        Options FollowSymLinks
        AllowOverride All
        Require all denied
</Directory>

<Directory /usr/share>
        AllowOverride All
        Require all granted
</Directory>

<Directory "/var/www/html/phabricator/webroot">
        Require all granted
        AllowOverride All
</Directory>

<小时>

我的 apache 重写配置到底有什么问题?


What's exactly wrong with my apache rewrite configuration?

推荐答案

Apache 在 Directory 语句中没有继承,因此您还需要 /Directory 块内的 AllowOverride All 行var/www/html/phabricator/webroot.

Apache does not have inheritance inside Directory statements, so you also need the AllowOverride All line inside the Directory block for /var/www/html/phabricator/webroot.

为了避免混淆,我会去掉 /var/www 目录块,除非您有另一个使用它的 VirtualHost(在这种情况下,您可能希望将 Phabricator 从该目录中移出以避免意外创建后门).

To avoid confusion, I would get rid of the /var/www Directory block, unless you have another VirtualHost that uses it (in which case, you might want to move Phabricator out from that directory to avoid accidentally creating back doors).

这篇关于Phabricator 安装.重写规则配置不正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆