diff --git a/README.md b/README.md index 4fa9738fb497ec8e3a28a99769e2fb58bf48b9c0..5f2e89bc9cd769636d26b0a38acd3b2a14460c09 100644 --- a/README.md +++ b/README.md @@ -126,6 +126,9 @@ path :'' # can be 'all' or 'any' satisfy: 'all + +# example: "https://upstream". If set to None no reverse proxy will be set up. +backend: None ``` **mapsconfig**: diff --git a/templates/vhost.conf.j2 b/templates/vhost.conf.j2 index 3d8fbb498874989548b0a4f6b9146aad5088b136..bbffbecf348df222a94d4af842d7082cc4a6c98c 100644 --- a/templates/vhost.conf.j2 +++ b/templates/vhost.conf.j2 @@ -50,7 +50,7 @@ server { proxy_buffering off; # add proxy headers - proxy_set_header Host {{ vhost.host }}; + proxy_set_header Host {{ location.host|d(vhost.host) }}; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme;