From 407dcacedf044e13306ceafd93ffe33e3bcc7ce0 Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 27 Sep 2019 17:49:29 +0100 Subject: [PATCH] lightthpd: add proxy.forwarded for Host, add /dev/null docroot --- docs/rest_api/lighttpd | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/docs/rest_api/lighttpd b/docs/rest_api/lighttpd index 9e6b7513..3dbcaffe 100644 --- a/docs/rest_api/lighttpd +++ b/docs/rest_api/lighttpd @@ -3,6 +3,7 @@ server.pid-file = "/var/run/lighttpd.pid" server.username = "www-data" server.groupname = "www-data" server.port = 5000 +server.document-root = "/dev/null" server.modules += ("mod_openssl", "mod_proxy", "mod_setenv") @@ -12,8 +13,4 @@ ssl.pemfile = "/etc/letsencrypt/live/example.com/fullchain.pem" ssl.privkey = "/etc/letsencrypt/live/example.com/privkey.pem" proxy.server = ("" => (( "host" => "::1", "port" => 5001 )) ) - -setenv.add-request-header = ( - "Host" => "example.com:5000" -) - +proxy.forwarded = ( "host" => 1 )