summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sitemodules/profiles/templates/nginx_revproxy/virtual_host.nginx.epp7
1 files changed, 6 insertions, 1 deletions
diff --git a/sitemodules/profiles/templates/nginx_revproxy/virtual_host.nginx.epp b/sitemodules/profiles/templates/nginx_revproxy/virtual_host.nginx.epp
index 87bdae7..38409cf 100644
--- a/sitemodules/profiles/templates/nginx_revproxy/virtual_host.nginx.epp
+++ b/sitemodules/profiles/templates/nginx_revproxy/virtual_host.nginx.epp
@@ -26,6 +26,11 @@ server {
<%= $custom_config -%>
location / {
- proxy_pass <%= $target %>;
+ proxy_pass <%= $target %>;
+ proxy_set_header X-Forwarded-Host $host:$server_port;
+ proxy_set_header X-Forwarded-Server $host;
+ proxy_set_header Host $host;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}