Certbot doesn't recognize the domain name with a WWW. Help please!

OS: Centos 6
Server: NGINX
CMS: Wordpress
Host: Vultr (using the one-click wordpress deployment)

Issue: Certbot isn’t recognizing my domain name with a “www.” when I try to include that. When it prompted me to type the domain names, I typed: “www.teatimeteachers.com,teatimeteachers.com” Unfortunately it seems to only accept it without the “www.” which leads to problems when people are redirected to “www” and issued a security warning.

No names were found in your configuration files. Please enter in your domain
name(s) (comma and/or space separated) (Enter ‘c’ to cancel):www.teatimeteachers.com,teatimeteachers.com
Obtaining a new certificate
Performing the following challenges:
tls-sni-01 challenge for www.teatimeteachers.com
tls-sni-01 challenge for teatimeteachers.com
Cleaning up challenges
Cannot find a VirtualHost matching domain www.teatimeteachers.com.

The worst part is, I had this all up and running a week ago, but I lost everything from a server crash (my fault).

Which command did you run when you used certbot?

Looking at the VirtualHost, certbot tries to use Apache, not nginx.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.