Skip to content

Powered by Grav

HTTPS server

Install Apache 2

BASH
sudo apt install -y apache2

Modify configuration file

BASH
sudo nano /etc/apache2/apache2.conf

Add these lines at the end

INI
# Patching error AH00558
ServerName 127.0.0.1

Add modules required by Pixelfed

BASH
sudo a2enmod headers remoteip rewrite proxy proxy_fcgi

Add pixelfed user to apache group v0.14.4

BASH
sudo usermod -aG pixelfed www-data

Restart Apache and check it's working

BASH
sudo systemctl reload apache2
sudo systemctl status apache2

On the firewall / gateway (optional)

Temporarily connected on baggins as mountdoom, edit Caddy configuration

BASH
sudo nano /etc/caddy/Caddyfile

Add this entry at the end of the file

YAML
pixelfed.cogip.be {
    reverse_proxy 192.168.10.60 {
        header_up X-Forwarded-Proto {scheme}
        header_up X-Forwarded-For {remote}
        header_up X-Forwarded-Host {host}
    }
}

And reload Caddy

BASH
sudo systemctl reload caddy

© 2026 howto.cogip.be. All rights reserved.