You send a request to a web application, which is running on SAP BTP, Cloud Foundry environment and the browser responds with the message:
404 Not Found: Requested route ('<cloudFoundryHostname>.<cloudFoundryDomain>') does not exist.
The URL of the request contains a route to an application for which no route mapping has been defined. This means that the Cloud Foundry router can't delegate the request to the respective web application and responds with an error message. Another reason might be that your application has stopped.
Create and map the missing route to the web application.
cf map-route <webApplication> <cloudFoundryDomain> --hostname <cloudFoundryHostName>
The web application's name is bulletinboard-123456 and the application was created in the European landscape eu10.hana.ondemand.com, the application should be reachable under the following domain: https://bulletinboard.eu10.hana.ondemand.com.
Use the following command to create this route:
cf map-route bulletinboard-123456 cfapps.eu10.hana.ondemand.com --hostname bulletinboardCheck if the route was created:
cf routes
-
Log in to your Cloud Foundry account.
cf routes -
Choose your ORG and SPACE.
-
Check the status of your application.
cf app <your application> -
Restart your application.
cf restart <your application> -
Your application should now have the status running and you can call it through its route.