Score:0

ERR_CONNECTION_REFUSED when trying to configure Apache Virtual Host

bd flag

I'm trying to configure Phabricator on our server. For this, I followed the docs. When I tried to configure Virtual Host on the Apache2 server I encountered an error. I changed our DNS record for phabricator.<our_comapny_name>.com to target our server where phabricator is hosted.

I also added the file with the same name to our server's /etc/apache2/sites-enabled to define Virtual Host. It looks like this:

Listen 80
<VirtualHost *:80>
  # Change this to the domain which points to your host.
  ServerName phabricator.<company_name>.com

  # 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 /home/myuser/scripts/phabricator/webroot

  RewriteEngine on
  RewriteRule ^(.*)$          /index.php?__path__=$1  [B,L,QSA]
</VirtualHost>

And, then I added the symbolic link to sites-enabled like this: ln -s ../sites-available/phabricator.<company_name>.com phabricator.<company_name>.com

I tried restarting apache2, but I always get ERR_CONNECTION_REFUSED.

When I try to access the apache2 directly by using server's IP on port 80 I get "Apache2 Ubuntu Default Page", which I think is fine.

I also tried running "apache2ctl -V" to check which config file apache2 is using. Everything seems fine, looks like /etc/apache2 is the root dir. I don't know what else to try...I also flushed the IP tables without success

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.