diff --git a/docs/production/deployment.md b/docs/production/deployment.md index f72120dab8..3cfcb2f18c 100644 --- a/docs/production/deployment.md +++ b/docs/production/deployment.md @@ -483,7 +483,7 @@ that your Zulip server sits at `https://10.10.10.10:443`; see location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header Host $http_host; + proxy_set_header Host $host; proxy_http_version 1.1; proxy_buffering off; proxy_read_timeout 20m; diff --git a/scripts/lib/sharding.py b/scripts/lib/sharding.py index 878dc86094..6107a54d36 100755 --- a/scripts/lib/sharding.py +++ b/scripts/lib/sharding.py @@ -44,7 +44,7 @@ def write_updated_configs() -> None: sharding_json_f.write("{}\n") return - nginx_sharding_conf_f.write("map $http_host $tornado_server {\n") + nginx_sharding_conf_f.write("map $host $tornado_server {\n") nginx_sharding_conf_f.write(" default http://tornado9800;\n") shard_map: Dict[str, Union[int, List[int]]] = {} shard_regexes: List[Tuple[str, Union[int, List[int]]]] = []