Advanced Custom Domain Setup

Hosting

Last updated

Cut over traffic from your pre-existing web host to Ploy without downtime — through a staged, manual rollout.

This guide walks you through a series of manual setup steps that let you validate every Ploy configuration on a staging hostname before flipping production traffic. Once you're confident, you'll swap DNS at your registrar and your visitors will roll onto Ploy with zero downtime.

Prefer a condensed, checkable version of this guide? See the Advanced DNS Setup Checklist.


Create a Staging Domain

This step is optional — it's a suggestion, not a requirement. A staging domain is most useful for site owners in either of these situations:

  • Complex path routing — If you're setting up proxied paths, redirects, or other advanced routing configurations, a staging domain lets you validate those rules against real traffic before they affect your production domain.
  • Third-party integration testing — Use the staging domain as an additional allow-listed origin when testing third-party tools such as embedded forms, chat widgets, or any JavaScript-loaded components that check for trusted origins before initialising.

If neither of the above applies to you, you can skip ahead to Phased Rollout below.

  1. Use Custom Domain Setup to stage a pre-production domain such as v2.your-domain.com or www2.your-domain.com — whichever subdomain you can free up in your organization to serve as a playground for Ploy configurations.
  2. Once the Ploy site and any accompanying proxy and redirect rules are verified on this staging domain, move forward with migrating your important domains — such as www.your-company.com or your your-company.com apex domain.

Preparing for Ploy Transition

Before you cut over your production domain, lower the DNS TTL (Time to Live) on your existing records — specifically the A record for your apex domain (@) and the CNAME record for www or whichever subdomain you're migrating.

Set these TTL values to a low number such as 60 seconds (1 minute) or 300 seconds (5 minutes). This instructs DNS resolvers around the internet to check for an updated value more frequently, so when you do point those records at Ploy, the change propagates much faster globally — minimising the window during which users on unrefreshed caches still land on your old web host.

We recommend making this TTL change before your planned cutover, since resolvers that already have your current records cached will continue to honour the old TTL until it expires.


Phased Rollout

  1. When setup shows the DNS records, choose Add the records yourself and configure only the _acme-challenge values. This is sufficient for Ploy's edge network to verify your domain ownership and begin the minutes-long process of issuing an SSL certificate.
  2. Monitor the domain's status on the Domains page. Once the certificate has been issued, the domain's page says "The certificate is ready. Waiting for DNS." If it doesn't get there, contact the Ploy support team for help.
  3. If you used a staging domain to configure path routing, transfer those paths over in the UI. Edit as JSON in the Path routing ⋯ menu lets you copy them at once.
    1. The routing schema supports up to 20 total rules. If you need more, contact Ploy support ahead of time — we can suggest ways to structure your site to ease the complexity.
  4. Now set the A 207.207.209.209 or CNAME proxy.runploy.com hostname records. DNS resolvers across the internet will then start to notice this change.
    1. When Ploy notices this change, we will mark the domain as Live in our system and begin serving traffic for users and browsers that resolve your domain to our IP or hostname. You don't need to keep the setup open. Setup keeps going in the background. If the status doesn't change, open the domain and select Check again.
    2. Many users will have stale caches on their computers and home/corp networks and will continue to reach your old hosting provider. During this phase, we advise that you keep your old provider's content online so all users reach a valid page.
    3. You may continue to see old cached pages on your desktop browser for a while. Follow public instructions on clearing caches for macOS, Linux, Windows, and/or your browser (e.g. Chrome) if you keep loading the old site.