Inhaltsverzeichnis:

reverse proxy

2023-04-04 / 2023-04-05

Reverse Proxy im lighttpd für openHAB und Conbee⌶⌶.

sudo lighty-enable-mod proxy
sudo service lighttpd force-reload

sudo nano /etc/lighttpd/lighttpd.conf 
#In server.modules{} einfügen
    "mod_proxy"

$HTTP["host"] =~ "zigbee.wac47.l11" {
    proxy.server  = ( "" =>
        (( "host" => "127.0.0.1", "port" => 8008 ))
    )
}
$HTTP["host"] =~ "openhab.wac47.l11" {
    proxy.server  = ( "" =>
        (( "host" => "127.0.0.1", "port" => 8080 ))
    )
}

#Syntax prüfen:
lighttpd -t -f /etc/lighttpd/lighttpd.conf

Im OPNsense DNS müssen die Subdomains registriert werden.