FAQ: SSL, DNS/IP preflight, backup & restore
-
Frequently asked questions about SSL and the DNS/IP preflight. Post new questions in this category.
Why does
wpfy site sslfail with "DNS does not match public IP"?wpfy refuses to request a Let's Encrypt certificate unless the domain's DNS A (and AAAA) records resolve to your server's public IP. This prevents failed ACME challenges and accidental certificate issuance for a domain you don't control.
Fix:
- Check DNS:
dig +short example.com - Check your public IP:
curl -s ifconfig.me - They must match. Update DNS at your registrar and wait for propagation.
What does the preflight actually check?
preflight_ssl()compares the domain's resolved A/AAAA records against the server's detected public IPs. Only when they match does wpfy proceed to ACME issuance. See SSL Flow.Can I test SSL without real DNS?
Yes, offline:
WPFY_TEST_DNS_IPS=1.2.3.4 WPFY_TEST_PUBLIC_IPS=1.2.3.4 wpfy site ssl example.com -leThis fakes a DNS/IP match so the preflight passes. Do not use this in production — it bypasses the safety check.
I enabled SSL. Now my site redirects oddly.
Enabling SSL updates WordPress
homeandsiteurltohttps://<domain>after the runtime restarts. If redirects fall back to HTTP, runwpfy site status example.comto confirm the runtime restarted, then clear WordPress/object cache. See Site SSL.How do I force HTTPS?
Traefik handles the redirect once the SSL router is active. You don't need a separate plugin. If a site was created without
-le, enable SSL:wpfy site ssl example.com -leBackups and restore
wpfy site backup example.com— timestamped tarball to/var/lib/wpfy/backups/wpfy site restore example.com <backup>.tar.gz— restore files and database
Backups are never world-readable. Never restore one site's secrets into another. See Site Backup and Site Restore.
- Check DNS:
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login