How to reverse proxy https with lighttpd?
Solution 1:
lighttpd doesn't support TLS on backend connections.
If the backend needs to know whether the frontend connection was made with TLS check the X-Forwarded-Proto
header.
If you need an encrypted connection to the backend (due to an untrusted network), use a VPN.
If you wanted end-to-end encryption to the backend you need a TCP proxy (haproxy can route connections based on SNI), or just forward it with iptables and DNAT.