Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8239f0a

Browse files
committed
fix snippet formatting + <h4>
1 parent 1b6da3f commit 8239f0a

File tree

1 file changed

+26
-27
lines changed

1 file changed

+26
-27
lines changed

deploy-apps/routes-domains.html.md.erb

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -84,20 +84,20 @@ To create an internal route:
8484

8585
* After an internal route is mapped to an app, the route resolves to IP addresses of the app instances. The IP addresses are visible in the application container:
8686

87-
```console
88-
$ cf ssh app
89-
vcap@1234:~$ host app.apps.internal
90-
app.apps.internal has address 10.255.169.200
91-
app.apps.internal has address 10.255.49.7
92-
app.apps.internal has address 10.255.49.77
93-
```
87+
```console
88+
$ cf ssh app
89+
vcap@1234:~$ host app.apps.internal
90+
app.apps.internal has address 10.255.169.200
91+
app.apps.internal has address 10.255.49.7
92+
app.apps.internal has address 10.255.49.77
93+
```
9494

9595
* To resolve individual instances, prepend the index to the internal route.
9696

97-
```console
98-
vcap@1234:~$ host 1.app.apps.internal
99-
1.app.apps.internal has address 10.255.49.7
100-
```
97+
```console
98+
vcap@1234:~$ host 1.app.apps.internal
99+
1.app.apps.internal has address 10.255.49.7
100+
```
101101

102102
2. Create a network policy that allows your apps to communicate with each other. By default, apps cannot communicate over the container network. For more
103103
information, see [Configuring container-to-container networking](cf-networking.html) and the [Cloud Foundry CLI reference guide](https://cli.cloudfoundry.org/en-US/cf/add-network-policy.html).
@@ -133,9 +133,8 @@ This command instructs <%= vars.app_runtime_abbr %> to only route requests to ap
133133
<li>Any path under either of the these URLs, such as <code>http://example-app.<%= vars.app_domain %>/bar</code></li>
134134
</ul>
135135

136-
<p></p>
137136

138-
#### <a id='create-route-wo-hostname'></a> Create an HTTP route without host name
137+
<h4><a id='create-route-wo-hostname'></a>Create an HTTP route without host name</h4>
139138

140139
This approach creates a route with the same address as the domain itself and is permitted for private domains only. For more information, see [Private
141140
Domains](#private-domains) .
@@ -172,7 +171,7 @@ If DNS is configured for this subdomain, this command instructs <%= vars.app_run
172171
* `https://foo.<%= vars.private_app_domain %>`
173172
* Any path under either of these URLs, such as `http://foo.<%= vars.private_app_domain %>/foo`
174173

175-
#### <a id='create-route-w-wildcard-hostname'></a> Create an HTTP route with wildcard host name
174+
<h4><a id='create-route-w-wildcard-hostname'></a> Create an HTTP route with wildcard host name</h4>
176175

177176
An app mapped to a wildcard route acts as a fallback app for route requests if the requested route does not exist. To create a wildcard route, use an asterisk for the host name.
178177

@@ -187,7 +186,7 @@ OK
187186
If a client sends a request to `http://app.foo.<%= vars.app_domain %>` by accident, attempting to reach `example-app.foo.<%= vars.app_domain %>`,
188187
<%= vars.app_runtime_abbr %> routes the request to the app mapped to the route `*.foo.<%= vars.app_domain %>`.
189188

190-
#### <a id='create-route-w-path'></a> Create an HTTP route with a path
189+
<h4><a id='create-route-w-path'></a> Create an HTTP route with a path</h4>
191190

192191
Developers can use paths to route requests for the same host name and domain to different apps.
193192

@@ -226,7 +225,7 @@ If the developer maps the first route with path `products` to the `products` app
226225
</ul>
227226
</div>
228227

229-
#### <a id='create-route-with-port'></a> Create a TCP route with a port
228+
<h4><a id='create-route-with-port'></a> Create a TCP route with a port</h4>
230229

231230
A developer can create a TCP route for `<%= vars.tcp_app_domain %>` on an arbitrary port. This is the default in the v7 version of the cf CLI.
232231

@@ -316,7 +315,7 @@ You can create and reserve routes for later use by following the procedure in [M
316315

317316
Changes to route mappings are run asynchronously. On startup, an app becomes accessible at its route within a few seconds. Similarly, upon mapping a new route to a running app, the app becomes accessible at this route within a few seconds of the CLI exiting.
318317

319-
#### <a id='map-route-manually'></a> Manually map a route
318+
<h4><a id='map-route-manually'></a>Manually map a route</h4>
320319

321320
For these routes and apps:
322321

@@ -364,7 +363,7 @@ In cf CLI v8, the following command maps the route `h2app.<%= vars.app_domain %>
364363
$ cf map-route h2app <%= vars.app_domain %> --hostname h2app --destination-protocol http2
365364
```
366365

367-
#### <a id='map-route-on-push'></a> Map a route with app push
366+
<h4><a id='map-route-on-push'></a>Map a route with app push</h4>
368367

369368
Developers can map a route to their app with the `cf push` command.
370369
As of cf CLI v7, the best way to do this is by using the `routes` property in the manifest.
@@ -385,17 +384,17 @@ To map a TCP route during `push`, specify a TCP domain and request a random port
385384
$ cf push tcp-app -d <%= vars.tcp_app_domain %> --random-route
386385
```
387386

388-
#### <a id='map-route-w-manifest'></a> Map a route using app manifest
387+
<h4><a id='map-route-w-manifest'></a>Map a route using app manifest</h4>
389388

390389
Developers can map a route to their app with a manifest by editing the `route` attribute to specify the host, domain, port, and path components of the route. For more information, see [Deploying with app manifests](../deploy-apps/manifest.html#routes).
391390

392-
#### <a id='map-route-to-mult-apps'></a> Map a route to multiple apps
391+
<h4><a id='map-route-to-mult-apps'></a>Map a route to multiple apps</h4>
393392

394393
<%= partial 'routing_conflict' %>
395394

396395
For more information about troubleshooting this problem, see [Routing conflict](troubleshoot-app-health.html#routing-conflict) in _Troubleshooting app deployment and health_.
397396

398-
#### <a id='map-multiple-routes'></a> Map multiple routes to one app
397+
<h4><a id='map-multiple-routes'></a>Map multiple routes to one app</h4>
399398

400399
You can have multiple routes to an app, but those routes cannot have different context paths.
401400

@@ -433,7 +432,7 @@ These routes are _not_ valid for a single app:
433432
</tr>
434433
</table>
435434

436-
#### <a id='map-internal-route'></a> Map an internal route to an app
435+
<h4><a id='map-internal-route'></a>Map an internal route to an app</h4>
437436

438437
You can map an internal route to any app. This internal route allows your app to communicate with other apps without leaving the platform. After it is mapped, this route becomes available to all other apps on the platform.
439438

@@ -710,7 +709,7 @@ When using shared domains, you cannot have routes with the same host name and do
710709

711710
Shared domains are HTTP by default, but can be configured to be TCP when associated with the TCP router group.
712711

713-
#### <a id='create-shared-domain'></a> Create a shared domain
712+
<h4><a id='create-shared-domain'></a> Create a shared domain</h4>
714713

715714
Admins can create an HTTP shared domain with the `cf create-shared-domain` command:
716715
```console
@@ -733,15 +732,15 @@ Then create the shared domain using the `--router-group` option to associate the
733732
$ cf create-shared-domain <%= vars.tcp_app_domain %> --router-group default-tcp
734733
```
735734

736-
#### <a id='delete-shared-domain'></a> Delete a shared domain
735+
<h4><a id='delete-shared-domain'></a>Delete a shared domain</h4>
737736

738737
Admins can delete a shared domain from <%= vars.app_runtime_abbr %> with the `cf delete-shared-domain` command:
739738

740739
```console
741740
$ cf delete-shared-domain example.com
742741
```
743742

744-
#### <a id='internal-domains'></a> Internal domain
743+
<h4><a id='internal-domains'></a>Internal domain</h4>
745744

746745
The internal domain is a special type of shared domain used for app communication internal to the platform. When you activate service discovery, the internal domain `apps.internal` becomes available for route mapping.
747746

@@ -763,7 +762,7 @@ When using private domains, you can have routes with the same host name and doma
763762

764763
Private domains can be HTTP or HTTPS only. TCP routing is supported for shared domains only.
765764

766-
#### <a id='create-private-domain'></a> Create a private domain
765+
<h4><a id='create-private-domain'></a>Create a private domain</h4>
767766

768767
Org managers can create a private domain by running:
769768

@@ -777,7 +776,7 @@ Org managers can create a private domain for a subdomain by running:
777776
$ cf create-private-domain example-org foo.<%= vars.private_app_domain %>
778777
```
779778

780-
#### <a id='sharing-private-domains'></a> Sharing a private domain with one or more orgs
779+
<h4><a id='sharing-private-domains'></a>Sharing a private domain with one or more orgs</h4>
781780

782781
Org managers can grant or revoke access to a private domain to other orgs if they have permissions for these orgs.
783782
As of cf CLI v7, `cf unshare-private-domain` command provides a warning and requires confirmation before it proceeds.

0 commit comments

Comments
 (0)