[packages/gitlab-ce] nginx: add X-Forwarded-Host example

glen glen at pld-linux.org
Sun Sep 4 12:41:34 CEST 2016


commit 7a2dc96eb26c7f705fd8d73cc1ce34513ad5a24c
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Sep 4 13:41:30 2016 +0300

    nginx: add X-Forwarded-Host example

 nginx.conf | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/nginx.conf b/nginx.conf
index e6caa6a..499fdf6 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -40,6 +40,7 @@ server {
 		proxy_http_version 1.1;
 
 		proxy_set_header Host $http_host;
+		proxy_set_header X-Forwarded-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 http;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gitlab-ce.git/commitdiff/7a2dc96eb26c7f705fd8d73cc1ce34513ad5a24c



More information about the pld-cvs-commit mailing list