You send an unauthenticated request to a web application, which is running on SAP BTP, Cloud Foundry. The system responds with the message:
The subdomain does not map to a valid identity zone.
The subdomain and/or the Cloud Foundry domain of the web application do not match the values provided in the URL of the web application.
Reason |
Solution |
The URL contains either an incorrect subdomain or an incorrect landscape domain (or both). |
Check the the subdomain and landscape domain of your request |
The subdomain belongs to a subaccount which has not yet been defined in the Cloud Foundry environment. |
Create the missing subaccount |
The |
Correct the TENANT_HOST_PATTERN in the manifest.yml file of the web application |
You are running your applications on the SAP BTP trial and your account has expired. |
Extend your trial account |
Check the subdomain and landscape domain of your request. You can find the subdomain in the SAP BTP cockpit in the Overview section of the subaccount that you are using for the request, under Subaccount Details.
You can find the landscape URL for your Cloud Foundry environment here. For example, the subdomain for the European region is eu10.hana.ondemand.com.
Create the missing subaccount with the same subdomain in the Cloud Foundry environment of the respective Cloud Foundry domain.
-
Check the
TENANT_HOST_PATTERN
environment variable in themanifest.yml
file of the web application.The tenant host pattern is a regular expression (regex) and is used to determine the subdomain that the request is associated with. If the URL of the request does not match the pattern in the
manifest.yml
, you will receive an error message. -
The tenant host pattern should usually be defined as follows:
env: XSAPPNAME: "<your-application-name>" TENANT_HOST_PATTERN: "^(.*)-<CloudFoundryHostName>.<landscape>".
The regular expression and the Cloud Foundry hostname are separated by a hyphen. The subdomain is not a subdomain of the web application in a technical sense. The subdomain would otherwise be separated from the Cloud Foundry hostname with a dot. That, however, would require the automation of the certificate creation process each time a new tenant is onboarded. The workaround for the time being is therefore to concatenate the subdomain of the tenant with the Cloud Foundry hostname with a hyphen. All of these concatenations share the same Cloud Foundry top level domain and also the certificate of that top level domain.
The web application's name is bulletinboard-123456 and the application was created in the European landscape eu10.hana.ondemand.com.
Change the
manifest.yml
.env: XSAPPNAME: "bulletinboard-123456" TENANT_HOST_PATTERN: "^(.*)-approuter-123456.cfapps.eu10.hana.ondemand.com".
Recheck the definition of the
TENANT_HOST_PATTERN
environment variable in themanifest.yml
file and correct it, if necessary.
The route for the TENANT_HOST_PATTERN has to be lowercase.
Extend your trial account from within the SAP BTP cockpit.
- Visit the trial page.
- Choose Enter Your Trial Account.
- Choose the calendar symbol in the upper right corner.
- Choose Extend Free Trial.
Cloud Foundry trial accounts expire after 30 days. You can extend the trial period to a maximum of 90 days, after which your account is automatically deleted.