Hôte virtuel

Créer un répertoire dédié pour l'hôte virtuel _Apache_ :

sudo mkdir -p /www
sudo mkdir -p /www/pixelfed.fediverse.ovh
sudo chmod -R 755 /www

Éditer un nouveau fichier:

sudo nano /etc/apache2/sites-available/pixelfed.fediverse.ovh.conf

Et coller ces lignes :

<VirtualHost *:80>
    ServerName pixelfed.fediverse.ovh
    DocumentRoot /usr/share/webapps/pixelfed/public
    <Directory /usr/share/webapps/pixelfed/public>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
    ErrorLog ${APACHE_LOG_DIR}/pixelfed-fediverse-ovh.error.log
    CustomLog ${APACHE_LOG_DIR}/pixelfed-fediverse-ovh.access.log combined
    # Send requests for PHP files to the PHP-FPM socket
    ProxyPassMatch "^/(.*\.php(/.*)?)$" "unix:/run/php-fpm/pixelfed.sock|fcgi://localhost/usr/share/webapps/pixelfed/public/
</VirtualHost>

Enregistrer et quitter Nano.
Activer l'hôte virtuel et désactiver la page par défaut d'Apache :

sudo a2ensite pixelfed.fediverse.ovh.conf
sudo a2dissite 000-default.conf

Redémarrer le service apache2 :

sudo systemctl restart apache2