TXT
sudo apt install apache2
Modify configuration file
TXT
sudo nano /etc/apache2/apache2.conf
Add these lines at the end
TXT
# Patching error AH00558
ServerName 127.0.0.1
Add modules
TXT
sudo a2enmod headers remoteip rewrite proxy proxy_fcgi
And restart Apache
TXT
sudo systemctl reload apache2
On the firewall / gateway
Temporarily Connected on baggins as mountdoom, edit Caddy configuration
TXT
sudo nano /etc/caddy/Caddyfile
Add this entry at the end of the file
TXT
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
TXT
sudo systemctl reload caddy