O'Reilly logo

Cloud Foundry for Developers by David Wu, Rahul Jain, Rick Farmer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required