表单: RailsNotes
用户: dreamable
创建日期: 2021-04-04 10:12:52 UTC
更新日期: 2021-04-04 19:11:27 UTC
引用:(Table ID 3, Record ID 33)

标题 :
HTTPS on subdomain
笔记 :
  1. DNS setting: add CNAME api -> @ or * -> @
  2. Expand certification to sub-domains sudo certonly certonly -a webroot --webroot-path=/var/www/<your site>/current/public -d www.example.com -d example.com -d api.example.com
    • Must use certonly. With the webroot plugin, you probably want to use the "certonly" command, eg:
    • Can't use *.example.com, requires a plugin. Client with the currently selected authenticator does not support any combination of challenges that will satisfy the CA. You may need to use an authenticator plugin that can do challenges over DNS.
    • Must use the static directory, /var/www/<your site> not work for rails project.
  3. references:
标签: