My domain is: sultandonerkebab.com
I ran this command: certbot --apache -d sultandonerkebab.com -d www.sultandonerkebab.com
Outputs:-
Plugins selected: Authenticator apache, Installer apache
Cert not yet due for renewal
You have an existing certificate that has exactly the same domains or certificate name you requested and isn't close to expiry.
(ref: /etc/letsencrypt/renewal/sultandonerkebab.com.conf)
What would you like to do?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: Attempt to reinstall this existing certificate
2: Renew & replace the cert (limit ~5 per 7 days)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 1
Keeping the existing certificate
Deploying Certificate to VirtualHost /etc/apache2/sites-enabled/donerkebab-le-ssl.conf
Deploying Certificate to VirtualHost /etc/apache2/sites-enabled/donerkebab-le-ssl.conf
Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: No redirect - Make no further changes to the webserver configuration.
2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for
new sites, or if you're confident your site works on HTTPS. You can undo this
change by editing your web server's configuration.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2
Failed redirect for sultandonerkebab.com
Unable to set enhancement redirect for sultandonerkebab.com
Unable to find corresponding HTTP vhost; Unable to create one as intended addresses conflict; Current configuration does not support automated redirection
My web server is (include version): Vultr VPS 1 vcore 1024MB memory
The operating system my web server runs on is (include version): Debian x10 buster
My hosting provider, if applicable, is: vultr
I can login to a root shell on my machine (yes or no, or I don’t know): yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel): no
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you’re using Certbot):certbot 0.31.0
Today I added some extra domains to apache conf then ran the certbot comand but later removed those domains and reran the certbot for my original domain however I get this error.
Also there was this interesting line and I think it might be cause of problem but not sure, in my ssl conf file of apache for my website.
# because they have the potential to create redirection loops.
# RewriteCond %{SERVER_NAME} =sultandonerkebab.com [OR]
# RewriteCond %{SERVER_NAME} =www.sultandonerkebab.com
# RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
<Directory /var/www/donerkebab/>
AllowOverride All
</Directory>```