how to configure phabricator with a non root url?

不问归期 提交于 2019-12-05 08:08:44

This is not supported, and we do not plan to support it. The install documentation should probably make this more clear, although it is mentioned in the Configuration Guide:

You can either install Phabricator on a subdomain (like phabricator.example.com) or an entire domain, but you can not install it in some subdirectory of an existing website.

We don't plan to support this because support would be complex and have security implications, and only a tiny number of very small installs would benefit.

I'm using the following in the root of my apache config file:

RewriteEngine on
RewriteRule ^/phabricator/rsrc/(.*)     -                       [L,QSA]
RewriteRule ^/phabricator/favicon.ico   -                       [L,QSA]
RewriteRule ^/phabricator/(.+)$          /phabricator/index.php?__path__=$1  [B,L,QSA]

However, I can't fully test it because my computer doesn't seem to think ./bin/storage is a valid executable so I can't setup the database behind it.

It seems to work so far, but I'm not sure if the phabricator php code will just work or of it will need some modification as well. (when I visit MYHOST/phabricator/index.php, I get a phabricator error page related to the missing mysql setup)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!