create-route - Cloud Foundry CLI Reference Guide


名稱

create-route - Create a route for later use

用法

Create an HTTP route: cf create-route DOMAIN [--hostname HOSTNAME] [--path PATH] Create a TCP route: cf create-route DOMAIN [--port PORT]

EXAMPLES

cf create-route example.com # example.com cf create-route example.com --hostname myapp # myapp.example.com cf create-route example.com --hostname myapp --path foo # myapp.example.com/foo cf create-route example.com --port 5000 # example.com:5000

選項

--hostname, -n

HTTP 路徑的主機名稱(共用網域的必要項目)

--path

HTTP 路徑 (route) 的路徑 (path)

--port

Port for the TCP route (default: random port)

另請參閱

check-route, domains, map-route, routes, unmap-route