Installing LAMP website on FB domain's default Apache Homepage

Hi, I have a configured FB with the Webserver Home Page on domain .com/plinth/sys/config set to Apache default. I am trying to install a manual install of Friendi.ca (LAMP Fediverse web app) on the same domain .com I use on my FB (hopefully Friendica and Mastodon will be packaged for Debian and become part of FB soon!). I am unable to make domain .com resolve to anything but the default Apache page.

  1. placed Friendica come in /var/www/friendica
  2. $ sudo nano /etc/apache2/sites-available/domain.com.conf (text below)
  3. $ sudo a2dissite 000-default.conf
  4. $ sudo a2ensite domain.com.conf
  5. $ sudo systemctl reload apache2.service

Use FreedomBoxTLSSiteMacro domain .com

<VirtualHost *:80>
ServerName domain .com
ServerAlias www.domain .com
ServerAdmin webmaster@domain .com
DocumentRoot /var/www/friendica
DocumentIndex index.php

<Directory /var/www/friendica>
    Options -Indexes +FollowSymLinks
    AllowOverride All
</Directory>

ErrorLog ${APACHE_LOG_DIR}/domain.com-error.log
CustomLog ${APACHE_LOG_DIR}/domain.com-access.log combined

Expected Results
Pointing the browser to https://domain .com, I expected to see Friendica installation page

Actual results
I still see Apache’s default index.html even though 000-default is disabled. Deleting/moving /var/www/html/index.html gives an Error 404, so I am assuming 000-default is still taking precedence somehow, even after a reboot.

Information

  • FreedomBox version: 22.26 (from Help → About page)
  • Hardware: Protectli Vault 6, i7, 32GB RAM, 1TB root partition
  • How did you install FreedomBox?: ‘apt install freedombox’ on a fresh Debian 11 Bullseye.