lightthpd: add proxy.forwarded for Host, add /dev/null docroot

This commit is contained in:
jesopo 2019-09-27 17:49:29 +01:00
parent a42a196720
commit 407dcacedf

View file

@ -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 )