> For the complete documentation index, see [llms.txt](https://docs.scepman.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.scepman.com/ja/azure-gou-cheng/custom-domain.md).

# カスタム ドメイン

## カスタム ドメインの構成

独自のカスタム ドメインを **SCEPman App Service** URL に設定したい場合は、Active Directory Endpoint を有効化するための要件として追加するのか、その他の理由だけで追加するのかを判断する必要があります。

#### Active Directory Endpoint に関する考慮事項

カスタム ドメインを [Active Directory](/ja/zheng-ming-shu-guan-li/active-directory.md) エンドポイントに使用したい場合は、 **A レコード**、 [Kerberos ではこれが必要です](/ja/zheng-ming-shu-guan-li/active-directory/general-configuration.md#ws_e_endpoint_access_denied)。この場合、App Service Domain がある場合でも、「その他すべてのドメイン サービス」を選択する必要があります。UI により、 **CNAME** をレコードの種類として選択するよう強制される場合があります。他の設定をしていても、DNS エントリを **A レコード** として引き続き構成できることを確認し、この構成で問題がないことをテスト済みです。それ以外の場合は、設定を変更して、 **A レコード** が許可されるようにしてください。たとえば、エイペックス ドメインを使用する、または App Service Managed Certificate 以外の証明書を使用します。この場合、App Service の受信 IP アドレスを確認する必要があります。これは App Service の Networking エントリに表示されます。

<figure><img src="https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2FmKTKAbT8cGrpC0HxazQR%2Fimage.png?alt=media&amp;token=9851c9ff-3951-45e4-9094-ffc4105f99f0" alt=""><figcaption></figcaption></figure>

#### **カスタム ドメインの追加**

Azure Domain Services を使用している場合は、App Service とのネイティブ統合の利点を得るために「App Service Domain」を選択してください。

Azure Domain Services を使用していない場合は、「その他すべてのドメイン サービス」を選択し、ドメイン プロバイダーで必要な検証レコードを追加します。

{% hint style="info" %}
「ドメインの検証」については、次の点に注意してください。

* 次の可能性を確認してください **CAA レコード** ルート ドメイン上のもの（どの認証局 (CA) が証明書の発行を許可されているかを指定します） - を参照してください [証明書の要件](https://learn.microsoft.com/en-us/azure/container-apps/custom-domains-managed-certificates?pivots=azure-portal#free-certificate-requirements)
* [App Service Managed Certificates に関する重要な変更](https://techcommunity.microsoft.com/blog/appsonazureblog/follow-up-to-%E2%80%98important-changes-to-app-service-managed-certificates%E2%80%99-november-20/4466120)
  {% endhint %}

![](https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2Fgit-blob-883b4bda8a37274ffe1be187de144f0a8470e0a6%2F2022-12-23%2017_01_35-Window.png?alt=media)

### SCEPman の BaseUrl を構成する

{% hint style="info" %}
Active Directory Endpoint を有効にするためにカスタム ドメインを追加する場合、以下で説明する BaseUrl の構成を更新する代わりに、設定 [AppConfig:ActiveDirectory:BaseUrl](/ja/scepman-gou-cheng/application-settings/active-directory.md#general-settings)を変更することもできます。これにより、AIA などには影響しませんが、Active Directory エンドポイントのみに影響します。
{% endhint %}

カスタム ドメインを構成した後は、SCEPman App Service の設定 [**AppConfig:BaseUrl**](/ja/scepman-gou-cheng/application-settings/basics.md#appconfig-baseurl) を新しい URL に更新し、App Service を保存して再起動してください。

![](https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2Fgit-blob-bee4508308dc32bd07be745820f4b5e683f93d0e%2Fscepman_cname4_1.png?alt=media)

{% hint style="info" %}
Certificate Master にカスタム ドメインを設定することは推奨されません。どうしても設定したい場合は、次のことも実施してください。

* SCEPman App Service の構成で、 **`AppConfig:CertMaster:URL`** を新しい Certificate Master の URL に更新し、
* Certificate Master のアプリ登録「SCEPman-CertMaster」に新しいサインイン URL を追加します。
  {% endhint %}

#### Microsoft のドキュメントと Managed Certificates

App Service にカスタム ドメインを追加する:\
<https://docs.microsoft.com/en-us/azure/app-service/app-service-web-tutorial-custom-domain>

App Service で TLS/SSL 証明書を追加および管理する:\
<https://docs.microsoft.com/en-us/azure/app-service/configure-ssl-certificate>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.scepman.com/ja/azure-gou-cheng/custom-domain.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
