Creating HTTP context path routing

In the previous sections, we visited the concepts of creating HTTP routes. In this section, we'll look at HTTP context path routing. Using the cf create-route with the --path option enables us to create a path for a given route for any application: 

Figure 34: An example of context path routing. Each identical route has a path that routes requests to an application

Context path routing enables us to map applications on the basis of a path for a given route, as we can see in the preceding figure. For one of the earlier paths, we can create a context path route by the command cf create-route development domain.com ...

Get Cloud Foundry for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.