A sample domain mapping definition, together with information on all the properties that can be added in a domain mapping definition JSON are as follows:
Sample domain mapping definition JSON
The following are sample configurations that can be used in a JSON to define domain mapping for a deployed application:
{ "domainMappings": [ { "cartridgeAlias": "tomcat", "domainName": "abc.com", "contextPath": "/abc/app" } ] }
Property definitions
All the properties that correspond to the domain mapping resource are explained as follows:
Property | Description | Data Type | Example | |||||
---|---|---|---|---|---|---|---|---|
| √ | √ | Alias of the cartridge | Yes | N/A | String | tomcat | |
domainName | √ | √ | Domain name of the application URL | Yes | N/A | String | abc.com | |
contextPath | √ | √ | Context path of the application URL | Yes | N/A | String | /abc/app |