Lighttpd/conf.d/ssl-enable.conf Backup lost

Can somebody help - I did overwrite my backup of lighttpd/conf.d/ssl-enable.conf in the way of playing arround HTTPS etc.

Can somebody post the unconfigured lighttpd/conf.d/ssl-enable.conf. Would be much appreciated and helpful. Thank you very much upfront.

Here you go.

root@turris:~# cat /etc/lighttpd/conf.d/ssl-enable.conf 
# This settings enables https with user-generated self-signed certificate from
# package https-cert

# This package is not meant to be edited, it is part of package lighttpd-https-cert
# If you need different https setup, uninstall this package and create your own configuration

$SERVER["socket"] == ":443" {
	ssl.engine = "enable"
	ssl.pemfile = "/etc/lighttpd-self-signed.pem"
}

$SERVER["socket"] == "[::]:443" {
	ssl.engine  = "enable"
	ssl.pemfile = "/etc/lighttpd-self-signed.pem"
}

Anyway, it comes from package lighttpd-https-cert. If you would like to reinstall the package which will provide to you default configuration in most cases, you can use:

opkg install lighttpd-https-cert --force-reinstall
2 Likes