We changed our domain names from pelvicpaintest.com to pelvic.pro. I've revoked and deleted the old certificate for pelvicpaintest.com and created a new one for www.pelvic.pro and pelvic.pro.
I'm not sure where the redirect is set, and how I can remove it.
Thanks!
My domain is:
Pelvic.pro
I ran this command:
sudo certbot certonly
It produced this output: How would you like to authenticate with the ACME CA? - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1: Apache Web Server plugin (apache) [Misconfigured] 2: Spin up a temporary webserver (standalone) 3: Place files in webroot directory (webroot) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Select the appropriate number [1-3] then [enter] (press 'c' to cancel): 3 Plugins selected: Authenticator webroot, Installer None Please enter in your domain name(s) (comma and/or space separated) (Enter 'c' to cancel): www.pelvic.pro,pelvic.pro Obtaining a new certificate
IMPORTANT NOTES:
Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/www.pelvic.pro/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/www.pelvic.pro/privkey.pem
Your cert will expire on 2021-02-28. To obtain a new or tweaked
version of this certificate in the future, simply run certbot
again. To non-interactively renew all of your certificates, run
"certbot renew"
If you like Certbot, please consider supporting our work by:
I tried to follow some tutorials on that. I'm sorry but this is all new to me. I currently have the following setup, but i guess that is also not the right one.
How do I create a new vhost for the domain name correctly?
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
VirtualHost configuration:
*:443 pelvic.pro (/etc/apache2/sites-enabled/000-default-le-ssl.conf:2)
*:80 is a NameVirtualHost
default server pelvic.pro (/etc/apache2/sites-enabled/000-default.conf:4)
port 80 namevhost pelvic.pro (/etc/apache2/sites-enabled/000-default.conf:4)
alias www.pelvic.pro
port 80 namevhost pelvic.pro (/etc/apache2/sites-enabled/pelvic.pro.conf:4)
alias www.pelvic.pro
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www/html"
Main ErrorLog: "/var/log/apache2/error.log"
Mutex mpm-accept: using_defaults
Mutex watchdog-callback: using_defaults
Mutex rewrite-map: using_defaults
Mutex ssl-stapling-refresh: using_defaults
Mutex ssl-stapling: using_defaults
Mutex ssl-cache: using_defaults
Mutex default: dir="/var/run/apache2/" mechanism=default
PidFile: "/var/run/apache2/apache2.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="www-data" id=33
Group: name="www-data" id=33
Nevermind, i found the problem. I noticed the little redirect area in the virtualhost which was still pelvicpaintest.com.. it works now. Thanks for your help.
In essence, yes. The double vhosts are gone, which is good. But now your www subdomain aliases are gone entirely too? I would suggest adding them back in both vhosts.