Dies ist meine lighttpd config:
Code: Alles auswählen
$HTTP["url"] =~ "^/rspamd" {
proxy.server = ( "" => ( ( "host" => "localhost", "port" => "11334" ) ) )
}
Code: Alles auswählen
# netstat -tulpn | grep rspamd
tcp 0 0 0.0.0.0:11332 0.0.0.0:* LISTEN 24343/rspamd: main
tcp 0 0 0.0.0.0:11333 0.0.0.0:* LISTEN 24343/rspamd: main
tcp 0 0 127.0.0.1:11334 0.0.0.0:* LISTEN 24343/rspamd: main
Rufe ich das über den Browser auf, kommt ein "503 - Service Not Available".
lighttpd/error.log sagt:
Code: Alles auswählen
2018-02-28 13:08:44: (mod_proxy.c.619) connect failed: 10 Network is unreachable 101
2018-02-28 13:08:44: (mod_proxy.c.1153) proxy-server disabled: localhost 11334 10
2018-02-28 13:08:44: (mod_proxy.c.523) no proxy-handler found for: /rspamd