aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2019-09-27 17:49:29 +0100
committerGravatar jesopo2019-09-27 17:49:45 +0100
commit407dcacedf044e13306ceafd93ffe33e3bcc7ce0 (patch)
tree1fb5b15e2d0c2e0d793ff7cd6f5c272d952e09b3
parentonly return IRCUser.hostmask() when all needed pieces are available (diff)
signature
lightthpd: add proxy.forwarded for Host, add /dev/null docroot
-rw-r--r--docs/rest_api/lighttpd7
1 files 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 )