From 308383a29e80dbbef015ba5878a36ca7df3551dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Rodrigo?= Date: Tue, 15 Dec 2020 11:12:16 +0100 Subject: [PATCH] Add nginx server port (#147) Also forward the port and not only the host. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 48be14c0e..dbe287e83 100755 --- a/README.md +++ b/README.md @@ -432,7 +432,7 @@ If you are running martin behind nginx proxy, you may want to rewrite request UR ```nginx location ~ /tiles/(?.*) { proxy_set_header X-Rewrite-URL $request_uri; - proxy_set_header X-Forwarded-Host $host; + proxy_set_header X-Forwarded-Host $host:$server_port; proxy_set_header X-Forwarded-Proto $scheme; # or $http_x_forwarded_proto proxy_pass http://martin:3000/$fwd_path$is_args$args; }