小编Wiz*_*Kid的帖子

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>
Run Code Online (Sandbox Code Playgroud)

每当我在浏览器上访问服务器IP时,都会出现此错误:

Request parameter '__path__' is not set. …
Run Code Online (Sandbox Code Playgroud)

apache ubuntu mod-rewrite phabricator

5
推荐指数
1
解决办法
5648
查看次数

标签 统计

apache ×1

mod-rewrite ×1

phabricator ×1

ubuntu ×1