Skip to content

DNS and HTTPS Setup for Ghost: What You Need to Do

A focused guide to the DNS records and HTTPS settings a Ghost site needs: record types, TTL, certificates, redirects and how to troubleshoot warnings.

10 min readUpdated Nov 27, 2026By XPASS Editorial Team

DNS and HTTPS Setup for Ghost: What You Need to Do

A Ghost site can look perfect in the editor and still feel broken to visitors if the plumbing behind the address is wrong. Two pieces of plumbing decide most of the experience: DNS, which sends the name to the right server, and HTTPS, which encrypts the connection and shows the padlock. Get them right and nobody notices them. Get them wrong and readers meet certificate warnings, slow redirects or a blank page.

This guide focuses on those two layers for Ghost. It assumes you already know the basics of choosing a domain; for the step-by-step connection flow, see how to connect a domain to Ghost in our companion article. Here we go deeper into which records to create, how certificates behave, how redirects should be arranged and how to diagnose the common failures. The same ideas, with different details, appear in the guides for Astro, Notion Sites and Laravel.

The two layers in plain terms

DNS is the directory. When a browser asks for your name, a resolver looks up records in your DNS zone and returns an address. The record formats are defined in RFC 1035, but in practice you only meet a handful of types.

HTTPS is the lock. After the browser reaches the server, the two sides negotiate an encrypted session. The server proves who it is with a certificate that names your domain and was issued by an authority the browser trusts. The Cloudflare overview of HTTPS explains it well.

The two layers depend on each other in one important way: a certificate authority checks control of the name through DNS or through a request that DNS makes possible. If DNS points to the wrong place when the certificate is requested, issuance fails. So the order is always DNS first, certificate second.

The records a Ghost site uses

Record Purpose Typical use for Ghost
A Maps a name to an IPv4 address Bare domain pointing at your server or the addresses your host gives you
AAAA Maps a name to an IPv6 address Optional, only if your server or host supports IPv6
CNAME Says a name is an alias of another name www or another subdomain pointing at your host's target name
MX Where email for the domain is delivered Not part of the website, leave as it is
TXT Free-text data used by many checks Email sender checks and ownership proofs, leave as it is
CAA Which authorities may issue certificates Optional; if present, it must allow the authority your host uses

Two rules prevent most mistakes. First, a name that has a CNAME must not have other records at the same name. Second, the bare domain cannot normally carry a CNAME, so it uses A records or a provider feature that flattens a CNAME.

Hosted Ghost versus a server you manage

Where the certificate comes from depends on who runs the server.

  • Hosted Ghost. The hosting service gives you the exact DNS values and usually issues and renews the certificate itself after it sees the records. Your job is to add the records, wait and confirm. Do not add a certificate of your own on top unless the host tells you to.
  • Self-managed Ghost. You run a web server in front of Ghost. You request a certificate, configure the server to use it, and make sure renewal happens before expiry. Automated certificate authorities that follow the ACME standard in RFC 8555 make this routine, and Let's Encrypt explains how the process works.
  • A proxy or CDN in front. If you put another service in front of Ghost, there can be two certificates: one between the visitor and the service, and one between the service and your server. Both must be valid, and the service's mode setting decides whether the second leg is verified.

If you need a certificate that your host does not provide, or want to compare types, see the SSL page for what is on offer.

Step-by-step DNS setup

  1. Write down the target. For a hosted site this is the list of values in the host's admin area. For your own server it is the server's public IP address.
  2. Lower the TTL in advance. If the name currently points somewhere else, reduce the TTL on the old record a day before the change so that caches expire quickly.
  3. Create the main record. Add the A record for the bare domain, or the CNAME for your chosen subdomain.
  4. Create the second record. Add the www CNAME (or the bare A record) so that the other version also resolves.
  5. Remove old records. Delete leftover A, AAAA or CNAME entries for the same names from earlier hosts or parking pages.
  6. Check IPv6. Either add a correct AAAA record or make sure no stale one remains.
  7. Look up the result. Ask a DNS lookup tool for each record and compare the answer with what you intended.
  8. Leave mail alone. Do not touch MX or TXT records as part of this change.

Step-by-step HTTPS setup

  1. Wait until the lookups return the right address. Requesting a certificate before this point wastes attempts.
  2. Get the certificate. On a hosted service, trigger the check and let it issue. On your own server, use your ACME client or the guided installer for Ghost to request one for both the bare name and the www name.
  3. Set the site URL in Ghost to https. The URL setting must contain the final public address with https. Restart Ghost so it reads the change.
  4. Force https. Configure the web server or host so that http requests receive a permanent redirect to https.
  5. Pick one canonical host. Redirect www to the bare name or the other way round, in a single hop.
  6. Test renewal. On a self-managed server, run the renewal in test mode and confirm a scheduled task exists. Certificates that quietly expire are one of the most common causes of sudden warnings.
  7. Review the certificate details. The names on it must include every address you use.

Redirects: one hop and one direction

Redirect chains frustrate both readers and search engines. A visitor who types http and www should go straight to the final https address, not through three steps.

  • http to https: permanent redirect.
  • Non-canonical host to canonical host: permanent redirect.
  • Order: combine them where you can, so the first response already points at the final address.
  • Trailing details: keep the path and query string so that deep links still work.

Once you are sure about the final address, you can consider the HSTS header, which tells browsers to use https only for your site. Add it only after everything works over https, because browsers remember it, and start with a short duration while you are testing.

Limits and what to watch for

  • Propagation takes time. A new record may appear for you but not for someone else. Test from another network before assuming a problem.
  • CAA records can block issuance. If you or a previous owner added a CAA record, it must list the authority your host uses.
  • Wildcard needs. A single certificate for one name does not cover other subdomains. If you plan several subdomains, request names for each or a wildcard certificate, which has stricter validation.
  • Mixed content. Old posts may contain http image links. Browsers may block or warn about them even though the page is on https.
  • Redirect loops. A proxy that forces https while the server also redirects can create an endless loop. Check which layer owns the redirect and disable the duplicate.
  • Expired certificates. Put a reminder in your calendar even when renewal is automatic, and test the site once a month.
  • Time and clock errors. Rare, but a server clock far off from real time makes certificates look invalid.
  • Email on the same domain. Website changes should never remove MX or TXT records. If you plan business mail, the business email page is the right place to look.

Keeping it healthy after launch

A good setup is not finished on launch day. A few light habits keep it working.

  • Monthly check. Open the site in a private window, look at the certificate expiry date and confirm that both the bare name and www behave as intended.
  • Keep a record sheet. Save a plain text list of every DNS record you added, with the date and the reason. When someone changes hosting later, this sheet prevents accidental deletions.
  • Watch the registrar emails. Renewal notices and contact verification messages from the registrar must reach a mailbox you read. A lapsed contact verification can suspend a domain.
  • Review after changes. Any time you change theme, host, proxy or email provider, repeat the lookup and certificate checks.
  • Limit who can edit DNS. Use a strong password and two-step sign-in on the DNS account, because anyone who can edit the zone can redirect your readers.

Troubleshooting guide

Symptom Likely cause What to check
Site does not load at all DNS points to the wrong place or has not spread Look up A or CNAME; wait for TTL
Browser says certificate does not match Certificate issued for another name Names listed on the certificate
Browser says certificate expired Renewal failed Renewal log, schedule, time on server
Works on www but not the bare name Missing second record Add the A record or redirect
Redirect loop Two layers forcing https Disable one
Images blocked on https page Mixed content Update links and the site URL
Works for you, not for others Cached DNS or IPv6 mismatch Remove stale AAAA, test elsewhere

A worked example

Ploy hosts her Ghost magazine on a small virtual server. She buys the domain, then follows this order.

  1. She notes the server's IPv4 address.
  2. She adds an A record for the bare name and a CNAME for www pointing at the bare name.
  3. She waits until a lookup shows the right address from two different networks.
  4. She requests one certificate that lists both names, and configures the web server to use it.
  5. She changes the Ghost URL setting to the https address and restarts.
  6. She sets up a single permanent redirect from http and www to the bare https address.
  7. She runs a renewal test and puts a monthly check in her calendar.

The site loads on the first visit from any device, and email, which lives elsewhere, is untouched.

Summary

For Ghost, DNS and HTTPS are two linked jobs. Point the name at the right place with the minimum number of clean records, wait until lookups confirm it, then obtain a certificate that covers every address you use, set the Ghost URL to https and redirect everything else to one canonical address in a single step. Remember renewal, watch for stale AAAA and CAA records, and keep mail records out of it.

If you are still choosing or managing the name itself, the domains page is the place to start.

Frequently asked questions

Which DNS records does a Ghost site need?

At minimum, a record that sends your main address to the host: an A record (and optionally AAAA) for the bare domain, or a CNAME for a subdomain such as www. Add a second record for the other version so you can redirect it.

Do I have to buy a certificate for Ghost?

Not necessarily. Many hosts issue a certificate automatically, and on a self-managed server you can use an automated certificate authority. You only need to buy one if your setup requires a specific type.

Why does my site load on http but show a warning on https?

The certificate is probably missing, expired, issued for another name, or DNS still points to a server that does not hold it. Check the name on the certificate and the records.

What is a good TTL?

A short value such as five minutes is useful just before a change. After everything works, a longer value reduces lookups. Your provider may have its own minimum.

How do I stop mixed content warnings?

Make sure the site URL in Ghost uses https and replace any hard-coded http links to images or scripts in your posts and theme.

About the author

Bob Kanokphon Thongdee, founder of XPASS VPN

Bob Kanokphon Thongdee

  • Founder of XPASS VPN
  • Co-founder of eSIMonline.asia
  • More than 7 years in online marketing
  • Founder of Cojourney Visa and Cojourney Travel

Ready to register your domain?

Search a name, compare extensions and pay once for the years you choose.

.com registration from $18.81 for the first year

Search domains

Keep reading

Domain & DNS Guides

How to Set Up DNS and HTTPS for an Astro Site

A practical guide to DNS records, certificates, redirects and HSTS for an Astro site, with the project settings and checks that keep pages and links secure.

10 min read

Domain & DNS Guides

DNS and HTTPS Setup for Notion Sites: A Practical Guide

What DNS records a Notion Sites custom domain needs, how HTTPS is handled for you, and how to fix verification, redirect and certificate problems.

9 min read

Domain & DNS Guides

How to Set Up DNS and HTTPS for a Laravel Site

A practical guide to DNS records, certificates, HTTP-to-HTTPS redirects, HSTS and the Laravel settings that keep every link and cookie secure.

10 min read