How to configure fabricator using non-root-url?

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

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

I tried several configurations in apache, but I can not work with the product correctly (alias, redirection).

Is there any solution with complicated apache configuration or future version of fabricator to handle this?

+6
source share
2 answers

This is not supported, and we do not plan to support it. Perhaps the installation documentation should make this clearer, although this is mentioned in the Setup Guide:

You can install Phabricator on a subdomain (e.g. phabricator.example.com) or the entire domain, but you cannot install it in some subdirectory of an existing website.

We do not plan to support this because the support will be complex and will have security implications, and only a small number of very small installations will benefit.

+3
source

I use the following in the root file of my apache configuration 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 not fully test it, because my computer does not seem to think. / bin / storage is a valid executable, so I cannot configure the database behind it.

It seems to work so far, but I'm not sure if the php code phabricator will just work, or some modification will be required from it too. (when I am in MYHOST / phabricator / index.php, I get a fabricator error page related to the missing mysql setting)

-1
source

Source: https://habr.com/ru/post/953567/


All Articles