Managing routes
In the preceding sections, you've learned how to create routes. Aside from the context path routing, aside from the context path routing, we've only created them, but have not mapped them to an application.
To map an HTTP route to an application run the command: cf map-route <app_name> <domain_name> [--hostname <host_name>] [--path <path_name>] or for TCP routes cf map-route <app_name> <domain_name> (--port <port_number> | --random_port).
Notice that the arguments of cf map-route are almost identical to cf create-route. The only difference is that map-route takes in an application name, while create-route takes in a space name. The cf map-route will create a route and map the route to an application in one command. The cf ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access