Expected Behaviour:
I would like to be able to access the Pi-hole Admin-Web-Interface via a self signed SSL certificate.
In order to to that, I followed those instructions:
Enabling HTTPS for your Pi-hole Web Interface
Setting up SSL with pihole, without a FQDN
In the admin panel, I set a local dns to redirect pi.myname.eu to the local ip-adress of my raspberry pi.
Then I changed the /etc/lighttpd/external.conf to:
$HTTP["host"] == "rpi.myname.eu" {
# Ensure the Pi-hole Block Page knows that this is not a blocked domain
setenv.add-environment = ("fqdn" => "true")
# Enable the SSL engine with a LE cert, only for this specific host
$SERVER["socket"] == ":443" {
ssl.engine = "enable"
ssl.pemfile = "/etc/lighttpd/ssl/combined.pem"
ssl.ca-file = "/etc/lighttpd/ssl/ca.crt.pem"
ssl.honor-cipher-order = "enable"
ssl.cipher-list = "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH"
ssl.use-sslv2 = "disable"
ssl.use-sslv3 = "disable"
}
# Redirect HTTP to HTTPS
$HTTP["scheme"] == "http" {
$HTTP["host"] =~ ".*" {
url.redirect = (".*" => "https://%0$0")
}
}
}
Actual Behaviour:
When restarting lighttpd, an error occurs:
Job for lighttpd.service failed because the control process exited with error code.
See "systemctl status lighttpd.service" and "journalctl -xe" for details
pihole -d gives me:
*** [ DIAGNOSING ]: Pi-hole processes
[✗] lighttpd daemon is failed
[✓] pihole-FTL daemon is active
*** [ DIAGNOSING ]: Pi-hole-FTL full status
● pihole-FTL.service - LSB: pihole-FTL daemon
Loaded: loaded (/etc/init.d/pihole-FTL; generated)
Active: active (exited) since Wed 2022-06-08 11:11:38 CEST; 4h 53min ago
Docs: man:systemd-sysv-generator(8)
Process: 29080 ExecStart=/etc/init.d/pihole-FTL start (code=exited, status=0/SUCCESS)
CPU: 518ms
Jun 08 11:11:31 MRP systemd[1]: Starting LSB: pihole-FTL daemon...
Jun 08 11:11:31 MRP pihole-FTL[29080]: Not running
Jun 08 11:11:31 MRP su[29090]: (to pihole) root on none
Jun 08 11:11:31 MRP su[29090]: pam_unix(su:session): session opened for user pihole(uid=999) by (uid=0)
Jun 08 11:11:38 MRP systemd[1]: Started LSB: pihole-FTL daemon.
*** [ DIAGNOSING ]: Setup variables
PIHOLE_INTERFACE=eth0
IPV4_ADDRESS=192.168.0.44/24
IPV6_ADDRESS= [. . .]
PIHOLE_DNS_1=208.67.222.222
PIHOLE_DNS_2=208.67.220.220
QUERY_LOGGING=true
INSTALL_WEB_SERVER=true
INSTALL_WEB_INTERFACE=true
LIGHTTPD_ENABLED=true
CACHE_SIZE=10000
DNS_FQDN_REQUIRED=true
DNS_BOGUS_PRIV=true
DNSMASQ_LISTENING=local
BLOCKING_ENABLED=true
ADMIN_EMAIL=[. . .]
WEBUIBOXEDLAYOUT=boxed
WEBTHEME=default-auto
*** [ DIAGNOSING ]: Dashboard and block page
[✗] Block page X-Header: X-Header does not match or could not be retrieved.
[✗] Web interface X-Header: X-Header does not match or could not be retrieved.
When I delete the content of /etc/lighttpd/external.conf, everything works again, after a restart.
Debug Token:
https://tricorder.pi-hole.net/CTOw3661/
Thank you very much in advance.
PS: Im quite new to the this stuff.