portofacil Thanks...
yes, I added:
ns1.digitalocean.com.
ns3.digitalocean.com.
ns2.digitalocean.com.
On my domain NS record
and then I tried
wo site update yourdomain.com --le
It works, and I can access the site with SSL.
and I delete the site, and I tried this command line:
wo site create youdoamin.com --wpsubdomain --wpredis --letsencrypt=wildcard
It will show the following:
Running pre-update checks [OK]
Setting up NGINX configuration [Done]
Setting up webroot [Done]
Downloading WordPress [Done]
Setting up database [Done]
Configuring WordPress [OK]
Installing WordPress [OK]
Installing plugin nginx-helper [OK]
Setting plugin nginx-helper [OK]
Installing plugin redis-cache [OK]
Testing Nginx configuration [OK]
Reloading Nginx [OK]
WordPress admin user : admin
WordPress admin password : asdfasdfjlkjlkjljlkj
Configure redis-cache: http://mysite/wp-admin/network/settings.php?page=redis-cache
Object Cache: Enable
Successfully created site http://mysite.net
Certificate type : wildcard
You already have an existing certificate for the domain requested.
(ref: /etc/letsencrypt/renewal/mysite.com_ecc/mysite.com.conf)
Please select an option from below?
1: Reinstall existing certificate
2: Issue a new certificate to replace the current one (limit ~5 per 7 days)
Type the appropriate number [1-2] or any other key to cancel: 2
Issuing new SSL cert with acme.sh
Deploying SSL cert [OK]
It looks work, but I can not access the site, it will on frontend browser
This site can’t be reached mysite.com took too long to respond.
Try:
Checking the connection
Checking the proxy and the firewall
ERR_TIMED_OUT
http://prntscr.com/qeh110
and I used update command line:
wo site update mysite -le
yes, I can access the site, and create a subsite, but the SSL certificate seems not a wildcard type, and I can access backend of the subsite, but the frontend page of the subsite will show: the nginx page.
go back domain management page, and delete
*.mydomain.com
It will not accessible for both backend and frontend.
So, add *.mydomain.com on domain management page, all of subsite are accessible for backend, but the frontend page will still be nginx page.
and manually change the subsite domain to be https://test.mysite.com, and the frontend will be accessible with security warning.
Then use "wo site update test.mydomain.com -le", it shows:
Site test.mydomain.com does not exist.
CONCLUSION:
1.Set NS to be ns1.digitalocean.com.
2.These three command line will all work:
wo site create mysite.com --wpsubdomain --wpredis --letsencrypt=wildcard --dns=dns_dgon
wo site create mysite.com --wpsubdomain --wpredis --letsencrypt=wildcard
wo site update mysite.com -le
but the site will will only be accessible at frontend when the last one "wo site update mysite.com -le" is used.