how to configure phabricator with a non root url?

倖福魔咒の 提交于 2019-12-10 04:24:36

问题


I am trying to install phabricator behind apache http server. The problem is that i would like to have an url like

http://myserver.fr.xxxx/phabricator and not http://myserver.fr.xxxx/

i have tried several configuration in apache but i am not able to have phabricator working correctly (alias,redirect).

Is there any solution with a tricky apache configuration or phabricator future release to handle this ?


回答1:


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.




回答2:


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)



来源:https://stackoverflow.com/questions/18720579/how-to-configure-phabricator-with-a-non-root-url

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