Custom Domain Name and Certificate

Last updated: 2020-08-21 14:00:44

    Operation Scenarios

    The domain name binding feature allows you to bind your own domain name to a service, so that the service can be accessed at it.

    Prerequisites

    • Please ensure that the domain name to be bound has been configured for resolution.
    • Please ensure that an ICP filing has been obtained for your domain name service in Mainland China as required.

    Directions

    Associating custom domain name

    1. Log in to the API Gateway Console and click Service on the left sidebar.
    2. In the service list, click a service ID to enter the service details page.
    3. On the service details page, select Custom domain, click Create in the top-left corner, enter the configuration information, and click Submit.
      • If you need the HTTPS protocol that supports independent domain names, you should submit the SSL certificate for your domain name by uploading it or by entering the certificate name, content, and private key.
      • A modified CNAME record will take effect after a period of time. Be sure to proceed with the configuration after it takes effect; otherwise, the configuration will fail.
    4. After configuring CNAME resolution, configure the domain name in the service (be sure to configure CNAME resolution first).
    5. To unbind a domain name, delete it from the service and then delete its CNAME record.

    Configuring the path mapping of domain name

    1. On the custom domain name list page, click Edit Path Mapping in the "Operation" column.
    2. Select the path mapping type:
      • Default path mapping: the URL of the path is custom domain name/environment name. For example, www.XXXXX.com/release points to the release environment in the service, www.XXXXX.com/prepub points to the pre-release environment in the service, and www.XXXXX.com/test points to the test environment in the service.
      • Custom path mapping: the URL is custom domain name/custom path. This URL points to the environment that you map. For example, if the configured path is /mypath and the environment is the release environment, the URL of the release environment will be www.XXXXX.com/mypath. If you want to use the root path, directly configure the path as /.

        When a custom path mapping is used, the default path mapping (i.e., custom domain name/environment name) will not take effect.
        Both the custom path mapping and default path mapping can be modified after configuration.

    3. Click Submit to complete the configuration..

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback
    Help