Deployment Location
Introduction
When you deploy your app outside Mendix Cloud, you can choose the URL that points to your app. However, there are some restrictions on where you should deploy your app.
domain
is used to identify the domain registered to you through the Internet Corporation for Assigned Names and Numbers (ICANN). This is sometimes referred to as the apex domain. This includes the top-level domain. For example, example.com
would be a domain
as used in this document.
For apps deployed to Mendix Cloud, you can customize a URL by adding custom domains.
Paths
If you specify an app URL location on a (sub)path, the Mendix runtime needs to know the public URL of your application. This can be done by setting the custom runtime setting ApplicationRootUrl
.
Routing based on a subpath is possible as of Studio Pro 10.3 (for details, see the ApplicationRootUrl section of the Runtime Customization page), although it is not supported in Mendix Cloud. For versions below 10.3, it is not possible to use a path to your app. Your app should always be at the root of your subdomain. In other words, it should be at a location like this: https://subdomain.domain/
.
If you want to deploy several apps on the same domain, use different subdomains to identify the app. For example, use https://appA.apps.mydomain.com/
, not https://mydomain.com/apps/appA
.
Main Domain Name
Do not deploy your app directly at the apex domain (https://domain/
).
This conflicts with the https://www.domain/
URL because the main domain is often redirected there if there is no subdomain specified.
Also, you would not be able to have additional custom domains for your app because you cannot create a CNAME record that points to an apex domain.