Vai al contenuto principale

lighttpd

lighttpd è un server HTTP leggero che può essere configurato come un proxy inverso adatto tramite il modulo mod_proxy.

SSL

Un'implementazione del supporto SSL tramite il modulo mod_openssl utilizzando OpenSSL può apparire come segue:

$SERVER["socket"] == "[::]:443" {
ssl.engine = "enable"
ssl.cipher-list = "HIGH"
$HTTP["host"] == "owncast.yourdomain.com" {
ssl.pemfile = "/etc/letsencrypt/live/yourdomain.com/fullchain.pem"
ssl.privkey = "/etc/letsencrypt/live/yourdomain.com/privkey.pem"
ssl.dh-file = "/etc/letsencrypt/ssl-dhparams.pem"
}
}

Proxy Inverso

Il proxying delle connessioni websocket in ingresso è integrato con il modulo.

Una configurazione di esempio per lighttpd potrebbe apparire come segue:

$HTTP["host"] == "owncast.yourdomain.com" {
# Forward all requests to Owncast:
proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => 8080 ) ) )

proxy.forwarded = ( "host" => 1,
"proto" => 1,
"for" => 1,
"remote_user" => 1 )

# Required for websocket (chat) forwarding:
proxy.header = ( "upgrade" => "enable" )
}

Improve this page

See something missing or incorrect? Edit this page and improve the documentation for everyone.

Contributors to this documentation