You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/deployment/general/deployment-location.md
+11-2Lines changed: 11 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,11 +27,20 @@ location /my/sub/path/ {
27
27
# Make the Mendix runtime aware of https, see documentation below for more information.
28
28
proxy_set_header X-Forwarded-Proto "https";
29
29
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
+
30
39
# Required for Mendix DevTools to work.
31
40
proxy_http_version 1.1;
32
41
33
42
# Proxy the request to the Mendix runtime.
34
-
proxy_pass http://mendix-runtim:8080/;
43
+
proxy_pass http://mendix-runtime:8080/;
35
44
}
36
45
```
37
46
@@ -43,7 +52,7 @@ If you want to deploy several apps on the same domain, use different subdomains
43
52
44
53
## Secure cookies for on-premise applications
45
54
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.
47
56
48
57
{{% alert color="info" %}}
49
58
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