Let's encrypt SSL certificate request 404 not found

I saw this thread is likely having the same problem as mine. But in my case, even subdomains have this problem. And now it evolves from 404 not found to ERR_CONNECTION_REFUSED, for all pages. Restarting the server didn’t solve connection refused.

Also, I tried to request a certificate in webmin. It showed another error.

### Failed to request certificate : No virtual host matching example.com was found