How to configure phabricator with a bare domain url?

889 views Asked by At

I'm trying to run phabricator on my home server. The last thing I struggle with is to use phabricator with a bare url. I've set up a virtual host (apache 2.4) using a seperate port for phabricator and added the required rewrite rules:

<VirtualHost *:81>
 DocumentRoot /var/www/html/phabricator/phabricator/webroot
 RewriteEngine on
 RewriteRule ^(.*)$          /index.php?__path__=$1  [B,L,QSA]
 <Directory "/var/www/html/phabricator/phabricator/webroot">
  Require all granted
 </Directory>
</VirtualHost>

Unfortunately, phabricator demands a non-root url. Any ideas?

I get the following error message: error-message

User moodboom found a solution but did not post the answer at how-to-configure-phabricator-with-a-non-root-url.

2

There are 2 answers

2
AudioBubble On

It doesn't look like it demands a non-root URL from the post you pointed to. It looks like the reverse, it demands a root URL. As quoted in the answer you mentioned:

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.

0
O.Schmitz On

Since there wasn't any easy way to solve this, I hat to set up a local DNS server (dnsmasq) to get rid of this problem. Manually changing the host file on every single client is possible but too tedious and error prone. Dnsmasq on the other hand was easy to setup on ubuntu 16.04 and will keep my local network a bit more organized.

Cheers,

O.Schmitz