Skip to content

Commit 9bff73d

Browse files
committed
QA
1 parent a08ac77 commit 9bff73d

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

content/en/docs/deployment/general/deployment-location.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,20 @@ location /my/sub/path/ {
2727
# Make the Mendix runtime aware of https, see documentation below for more information.
2828
proxy_set_header X-Forwarded-Proto "https";
2929
30+
# Forward the host to the Mendix runtime.
31+
proxy_set_header X-Forwarded-Host $host;
32+
33+
# Forward the prefix `/my/sub/path` to the Mendix runtime.
34+
proxy_set_header X-Forwarded-Prefix /my/sub/path
35+
36+
# Optional: forward a port when not running on standard ports.
37+
# proxy_set_header X-Forwarded-Port 3000
38+
3039
# Required for Mendix DevTools to work.
3140
proxy_http_version 1.1;
3241
3342
# Proxy the request to the Mendix runtime.
34-
proxy_pass http://mendix-runtim:8080/;
43+
proxy_pass http://mendix-runtime:8080/;
3544
}
3645
```
3746

@@ -43,7 +52,7 @@ If you want to deploy several apps on the same domain, use different subdomains
4352

4453
## Secure cookies for on-premise applications
4554

46-
The Mendix runtime sets cookies with the `secure` attribute when the application is served over `https` However, in a scenario where the Mendix runtime is served from behind a loadbalancer using `http` for the internal communication, the Mendix runtime needs to be made aware that it is served over `https` to the end-users. This can be done by setting the [ApplicationRootUrl](/refguide/custom-settings/#applicationrooturl-section) Runtime setting to a `https://` link, or by setting the `X-Forwarded-Proto` or `X-Forwarded-Schema` header to `https` in the loadbalancer.
55+
The Mendix runtime sets cookies with the `secure` attribute when the application is served over `https`. However, in a scenario where the Mendix runtime is served from behind a loadbalancer using `http` for the internal communication, the Mendix runtime needs to be made aware that it is served over `https` to the end-users. This can be done by setting the [ApplicationRootUrl](/refguide/custom-settings/#applicationrooturl-section) Runtime setting to a `https://` link, or by setting the `X-Forwarded-Proto` or `X-Forwarded-Schema` header to `https` in the loadbalancer.
4756

4857
{{% alert color="info" %}}
4958
For Mendix versions prior to Mendix 10.18 setting the [ApplicationRootUrl](/refguide/custom-settings/#applicationrooturl-section) Runtime setting to a `https://` link will not make the application aware of it being served via `https`. For Mendix 10.18 and later, setting the ApplicationRootUrl to a `http://` URL will take precedence over the `X-Forwarded-Proto` and `X-Forwarded-Schema` headers.

0 commit comments

Comments
 (0)