diff --git a/README.md b/README.md index 4fa9738..5f2e89b 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 3d8fbb4..bbffbec 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;