lightthpd: add proxy.forwarded for Host, add /dev/null docroot
This commit is contained in:
parent
a42a196720
commit
407dcacedf
1 changed files with 2 additions and 5 deletions
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue