Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

custom-domain-routes no routes found #24

Closed
0anton opened this issue Feb 27, 2024 · 2 comments
Closed

custom-domain-routes no routes found #24

0anton opened this issue Feb 27, 2024 · 2 comments

Comments

@0anton
Copy link

0anton commented Feb 27, 2024

Hi,

I'm following the instruction https://github.com/SAP-samples/btp-cap-multitenant-saas/blob/main/docu/4-expert/-CloudFoundry-/custom-domain-usage/README.md and get stuck in the following configuration.

I'm trying to create a custom domain mapping in my sub-account. I'm experiencing the inconsistent behaviour, which is cannot troubleshoot myself, so I kindly ask you to help me. The mapping creation finishes successfully:

d057039:my_own_rootCA$ cf custom-domain-map-route myapp-app-router.cfapps.eu12.hana.ondemand.com aaa.mydomain.cloud.sap
Command: custom-domain-map-route
Organisation:  tdo-dev  (184bdae4-0c2f-4174-9a64-fb847e13d13e)
API Endpoint:  https://api.cf.eu12.hana.ondemand.com/
Custom-Domain API Server:  https://custom-domain-certificates-api.cf.eu12.hana.ondemand.com/
OK

However the consequent mapping check shows the mapping is not created:

d057039:my_own_rootCA$ cf custom-domain-routes
Command: custom-domain-routes
Organisation:  tdo-dev  (184bdae4-0c2f-4174-9a64-fb847e13d13e)
API Endpoint:  https://api.cf.eu12.hana.ondemand.com/
Custom-Domain API Server:  https://custom-domain-certificates-api.cf.eu12.hana.ondemand.com/

No routes found

Trying to access the custom domain via web-browser confirms the mapping was not created:

https://aaa.tdo.cloud.sap/
404 Not Found: Requested route ('aaa.mydomain.cloud.sap') does not exist.

How can I create the mapping?

@alperdedeoglu
Copy link
Contributor

Hi @0anton,
Thank you very much for your interest in our sample repository.
From the domain you are using I understand that you are SAP Internal.

Custom Domain section of the repository aims guidance for SAP Partners and SAP Customers only. (May be we should mention that in the documentation since the repository gets also attraction from internal colleagues.)

I will share with you the internal guidence about the usage of SAP subdomains with SAP Custom Domain Service through internal channels and would be happy to support you.

@0anton
Copy link
Author

0anton commented Feb 27, 2024

Thanks, Alper, for your kind help!

It worked best at last!

As I used the custom-domain-service application with the service plan standard I could closely follow your guide and create a custom domain for my app. Even the certificate was automatically provisioned using a DigiCert Authority!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants