type the domain in the browser and if the domain is typed without www in it it will redirect to an url that has a www in it, but if you remove www after it loads and enter I got an error saying that the website is not secure . . . if I tried to generate a cert for the domain without www in it
and do the same thing, open a browser type in www.domain.com, it will show an error saying that the website is not secure and a url that has no www in it just type domain.com will load without a problem.
the rewrite condition is set by certbot automatically, So I didn't touch those.
what could be possibly wrong here? is the free certificate only applicable for either www.domain.com or domain.com only?
I disable ssl on this domain that I used this, because of this issue.
yes may mistake that was with “-d” in the command. @JuergenAuer. at some point I did tried to use that command. But end-up with the same issue, but I will try again and see if it will work.
No, choosing domains from the interactive list works about the same as using -d arguments.
Can you tell us your domain, Certbot’s output, the output of “sudo certbot certificates”, and what’s going wrong?
Be mindful of Let’s Encrypt’s rate limits and don’t generate too many duplicate certificates while working on this.
Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is:
I ran this command:
It produced this output:
My web server is (include version):
The operating system my web server runs on is (include version):
My hosting provider, if applicable, is:
I can login to a root shell on my machine (yes or no, or I don’t know):
I’m using a control panel to manage my site (no, or provide the name and version of the control panel):
This happens when the names are in two vhost configs.
if both names go to the same folder, then combine them into just one vhost config: servername growingstrongergame.com serveralias www.growingstrongergame.com
(or whatever the syntax is for your web server software)
If the two names do two different things (separate folders), then you will have to treat them as completely separate sites and issues them certs individually.
/etc/httpd/conf/httpd.conf:# ServerName gives the name and port that the server uses to identify itself.
/etc/httpd/conf/httpd.conf:#ServerNamewww.example.com:80
/etc/httpd/conf/httpd.conf:#Include /etc/httpd/sites-available/growingstrongergame.com-le-ssl.conf
/etc/httpd/sites-available/growingstrongergame.com.conf: ServerName growingstrongergame.com
/etc/httpd/sites-available/growingstrongergame.com.conf: ServerAlias www.growingstrongergame.com
/etc/httpd/sites-available/growingstrongergame.com.conf: ErrorLog logs/growingstrongergame.com-error_log
/etc/httpd/sites-available/growingstrongergame.com.conf: CustomLog logs/growingstrongergame.com-access_log common
ls -l /etc/httpd/sites-available/
-rw-r–r-- 1 root root 378 Dec 2 11:47 growingstrongergame.com.conf
Will "what" work?
If you mean, can certbot handle multiple domains in one IP? YES
If you mean, can my system (web server) handle multiple domains in one IP?
That depends on your web server version and your configuration.