我正在新 Droplet 上设置 Discourse,不知为何主域名 .example.com 会自动重定向到子域名 community.example.com。
此外,主域名未被 Let’s Encrypt SSL 证书覆盖,而子域名已被覆盖。
另外,该 SSL 证书的有效期仅至 2020 年 5 月。如何延长其有效期?如果有人能指点一些指南,解释如何解决重定向问题、如何为同一 SSL 证书添加主域名,以及如何大幅延长 SSL 证书的有效期,我将不胜感激。
我正在新 Droplet 上设置 Discourse,不知为何主域名 .example.com 会自动重定向到子域名 community.example.com。
此外,主域名未被 Let’s Encrypt SSL 证书覆盖,而子域名已被覆盖。
另外,该 SSL 证书的有效期仅至 2020 年 5 月。如何延长其有效期?如果有人能指点一些指南,解释如何解决重定向问题、如何为同一 SSL 证书添加主域名,以及如何大幅延长 SSL 证书的有效期,我将不胜感激。
Check your DNS file to make sure you don’t have a CNAME record that redirects example.com to community.example.com.
If you are using the official install guide with a Let’s Encrypt SSL certificate, it is set up to auto-renew.
As for installing an SSL certificate for the primary domain, here are some example guides:
If you want I have your apex (bare) domain point to www see forcewww.com.
Your https certificate is automatically renewed. You don’t need to worry about it. See letsencrypt.org for more info.