Hey,
I want to enable SSL for my pihole. My problem is, that Nextcloud runs on Port 80 and 443. I changed the standard Port to 81 And ist worked but after i enabled the SSL option the Lighttpd service doesn’t start anymore. So i have to change the Port 443 because it is in use of Nextcloud and use Port 8081 because it’s free.
● lighttpd.service - Lighttpd Daemon
Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2019-12-10 13:00:30 CET; 55s ago
Process: 27810 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, status=255/EXCEPT
Dez 10 13:00:30 smarthome systemd[1]: lighttpd.service: Service RestartSec=100ms expired, scheduling restart.
Dez 10 13:00:30 smarthome systemd[1]: lighttpd.service: Scheduled restart job, restart counter is at 5.
Dez 10 13:00:30 smarthome systemd[1]: Stopped Lighttpd Daemon.
Dez 10 13:00:30 smarthome systemd[1]: lighttpd.service: Start request repeated too quickly.
Dez 10 13:00:30 smarthome systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Dez 10 13:00:30 smarthome systemd[1]: Failed to start Lighttpd Daemon.
cat external.conf
$HTTP["host"] == "***nextcloud.ddns.net" {
# 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"] == ":8081" {
ssl.engine = "enable"
ssl.pemfile = "/etc/letsencrypt/live/***nextcloud.ddns.net/combined.pem"
ssl.ca-file = "/etc/letsencrypt/live/***nextcloud.ddns.net/fullchain.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")
}
}
}
I followed the official instruction to enable ssl.
https://discourse.pi-hole.net/t/enabling-https-for-your-pi-hole-web-interface/5771
My Debug Token: https://tricorder.pi-hole.net/0no3anenr3