‹ Return to How tos

Disabling custom domains for your Amazon Lightsail distributions

Last updated: July 23, 2020

Disable custom domains for your Amazon Lightsail distribution to stop using your registered domain names with your distribution. After you disable custom domains, your distribution accepts traffic only for the default domain that is associated with your distribution when you first create it (e.g., 123456abcdef.cloudfront.net), and traffic for the previously associated custom domains will see a 403 error.

For more information about distributions, see Content delivery network distributions in Amazon Lightsail.

Disable custom domains for your distribution

Complete the following procedure to disable custom domains for your distribution.

  1. Sign in to the Lightsail console.

  2. On the Lightsail home page, choose the Networking tab.

  3. Choose the name of the distribution for which want to disable custom domains.

  4. Choose the Custom domains tab on your distribution's management page.

  5. Under the Use your custom domains with HTTPS section of the page, use the toggle to disable custom domains for your distribution.

  6. At the prompt, choose Yes, disable to confirm that you want to disable custom domains for your distribution.

    Your request to disable custom domains is submitted, and the status of your distribution is changed to In progress. After a while, the status of your distribution changes to Enabled.

After you disable custom domains, your distribution accepts traffic only for the default domain that is associated with your distribution when you first create it (e.g., 123456abcdef.cloudfront.net), and traffic for the previously associated custom domains will see a 403 error. You should update the DNS records of the domains so that traffic for those domains is directed to another resource.

Additional information

Here are some articles to help you manage distributions in Lightsail: