我遇到了安装phabricator的问题。实际上,这似乎是一件简单的事情。我已经完全复制了示例代码。
apache2.conf:
<VirtualHost *>
# Change this to the domain which points to your host.
ServerName localhost
# 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/phabricator/webroot
RewriteEngine on
RewriteRule ^/rsrc/(.*) - [L,QSA]
RewriteRule ^/favicon.ico - [L,QSA]
RewriteRule ^(.*)$ /index.php?__path__=$1 [B,L,QSA]
</VirtualHost>
<Directory "/var/www/phabricator/webroot">
Require all granted
</Directory>
每当我在浏览器中输入服务器IP地址时,会出现以下错误提示:
Request parameter '__path__' is not set. Your rewrite rules are not configured correctly.
我发现这是Phabricator代码的一部分:
if (!isset($_REQUEST['__path__'])) {
self::didFatal(
"Request parameter '__path__' is not set. Your rewrite rules ".
"are not configured correctly.");
}
有人知道如何解决这个问题吗?
(涉及IT技术,可能是程序错误或故障)