You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/container-apps/rule-based-routing-custom-domain.md
+13-20Lines changed: 13 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,50 +23,43 @@ HTTP route configurations support custom domains, allowing you to route traffic
23
23
24
24
## Custom domain configuration
25
25
26
-
Using the DNS provider that is hosting your domain, create DNS records for your custom domain.
27
-
28
-
- If you are using the root domain (for example, contoso.com), create the following DNS records:
29
-
26
+
Using the DNS provider hosting your domain, create the appropriate DNS records for your custom domain.
27
+
- If you are using the root domain (for example, `contoso.com`), create the following DNS records:
30
28
| Record type | Host | Value |
31
29
|--|--|--|
32
30
| A | `@` | The IP address of your Container Apps environment. |
33
31
| TXT | `asuid` | The domain verification code. |
34
32
35
-
36
-
- If you are using a subdomain (for example, www.contoso.com), create the following DNS records:
37
-
33
+
- If you are using a subdomain (for example, `www.contoso.com`), create the following DNS records:
38
34
| Record type | Host | Value |
39
35
|--|--|--|
40
-
| A | The subdomain (for example, www) | The IP address of your Container Apps environment. |
41
-
| TXT | `asuid.{subdomain}` (for example, asuid.www) | The domain verification code. |
42
-
36
+
| A | The subdomain (for example, `www`) | The IP address of your Container Apps environment. |
37
+
| TXT | `asuid.{subdomain}` (for example, `asuid.www`) | The domain verification code. |
43
38
> [!NOTE]
44
-
> The IP address of your Container Apps environment and the domain verification code can be found in the [Custom DNS suffix settings](./environment-custom-dns-suffix.md#add-a-custom-dns-suffix-and-certificate) of the Container App Environment.
39
+
> The IP address of your Container Apps environment and the domain verification code can be found in the [Custom DNS suffix settings](./environment-custom-dns-suffix.md#add-a-custom-dns-suffix-and-certificate) of your Container Apps environment.
45
40
>
46
-
> Don't bind the custom domain to the Container App Environment or to a Container App. A domain can only be bound to one app, route, or environment.
41
+
> Don't bind the custom domain to your Container Apps environment or to a container app. Domains are only bound to one app, route, or environment.
47
42
48
43
## Route configuration
49
44
50
-
Update your Container Apps YAML file to include a `customDomains` section. Include a bindingType and certificateId, based on the following criteria:
51
-
45
+
Update your Container Apps YAML file to include a `customDomains` section. Include a `bindingType` and `certificateId`, based on the following criteria:
52
46
| bindingType value | Description |
53
47
|--|--|
54
-
| Disabled | No certificate is provided. The domain will only be available over HTTP. HTTPS will not be available. |
55
-
| Auto | A certificate is optional. If a managed certificate is already created for this domain, it will be added to the route automatically. Otherwise, the domain will initially only be available over HTTP. To create a managed certificate for this domain, create a new managed certificate after the route is created. After the certificate is created, it will automatically be added to the route. |
48
+
| Disabled | No certificate is provided. The domain is only available over HTTP, and HTTPS is not available. |
49
+
| Auto | A certificate is optional. If a managed certificate is already created for this domain, it is added to the route automatically. Otherwise, the domain is initially only available over HTTP. To create a managed certificate for this domain, create a new managed certificate after the route is created. After the certificate is created, it is automatically added to the route. |
> To add a certificate to your environment, use one of the following methods:
66
59
> - To add a Container Apps managed certificate, use the [az containerapp env certificate create](/cli/azure/containerapp/env/certificate#az-containerapp-env-certificate-create) CLI command.
67
60
> - To bring your own existing certificate, use the [az containerapp env certificate upload](/cli/azure/containerapp/env/certificate#az-containerapp-env-certificate-upload) CLI command.
68
61
>
69
-
> Don't bind the certificate to a Container App.
62
+
> Don't bind the certificate to a container app.
70
63
71
64
72
65
The following example demonstrates how to set up the route configuration.
0 commit comments