linode ssl error solution
my workspace envirment
ubuntu
apache
Deploying certificate
Successfully deployed certificate for mydomain.com to /etc/apache2/sites-enabled/wordpress-le-ssl.conf
Successfully deployed certificate for www.mydomain.com to /etc/apache2/sites-enabled/wordpress-le-ssl.conf
Failed redirect for mydomain.com
Unable to set the redirect enhancement for mydomain.com.
NEXT STEPS:
- The certificate was saved, but could not be installed (installer: apache). After fixing the error shown below, try installing it again by running:
certbot install --cert-name mydomain.com
Unable to find corresponding HTTP vhost; Unable to create one as intended addresses conflict; Current configuration does not support automated redirection
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
Deploying certificate
Successfully deployed certificate for mydomain.com to /etc/apache2/sites-enabled/wordpress-le-ssl.conf
Successfully deployed certificate for www.mydomain.com to /etc/apache2/sites-enabled/wordpress-le-ssl.conf
Failed redirect for mydomain.com
Unable to set the redirect enhancement for mydomain.com.
NEXT STEPS:
- The certificate was saved, but could not be installed (installer: apache). After fixing the error shown below, try installing it again by running:
certbot install --cert-name mydomain.com
Unable to find corresponding HTTP vhost; Unable to create one as intended addresses conflict; Current configuration does not support automated redirection
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
add a record
type A
host www
(value/location) hosting server IP
TTL 600
/etc/apache2/sites-available/wordpress.conf
AllowOverride All
Require all granted
</Directory>
<VirtualHost *:80>
ServerName mydomain.com
ServerAlias www.mydomain.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/wordpress/
ErrorLog /var/log/apache2/wordpress/error.log
CustomLog /var/log/apache2/wordpress/access.log combined
<files xmlrpc.php>
order allow,deny
deny from all
</files>
RewriteEngine on
RewriteCond %{HTTP_HOST} !=on
RewriteRule ^/(.*) https://www.mydomain.com/$1 [R,L]
SSLEngine On
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/mydomain.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/mydomain.com/privkey.pem
</VirtualHost>
Which names would you like to activate HTTPS for?
Which names would you like to activate HTTPS for?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: .ip.linodeusercontent.com
2: mydomain.com
3: www.mydomain.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 2 3
type 2 3
$certbot --apache
Error
Unable to find corresponding HTTP vhost; Unable to create one as intended addresses conflict; Current configuration does not support automated redirection
That is happen to virctual hosting envirment that is issue we can solve easily
check the
root@:/etc/apache2/sites-available# ls /etc/letsencrypt/live/
check your domain and exiting your domain
#vim /etc/letsencrypt/live/mydomain.com/
root@:/etc/apache2/sites-available# vim /etc/letsencrypt/live/mydomain.com/
# vim /etc/apache2/sites-available/wordpress.conf
SSLEngine On
SSLCertificateFile /etc/letsencrypt/live/mydomain.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/mydomain/privkey.pem
and then
#certbot --apache
What would you like to do?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: Attempt to reinstall this existing certificate
2: Renew & replace the certificate (may be subject to CA rate limits)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2
i already install ssl before so i select number 2
What would you like to do?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: Attempt to reinstall this existing certificate
2: Renew & replace the certificate (may be subject to CA rate limits)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2
it change succesfully
root@:/etc/apache2/sites-available# vim wordpress.conf
<Directory /var/www/wordpress/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
<VirtualHost *:80>
ServerName mydomain.com
ServerAlias www.mydomain.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/wordpress/
ErrorLog /var/log/apache2/wordpress/error.log
CustomLog /var/log/apache2/wordpress/access.log combined
<files xmlrpc.php>
order allow,deny
deny from all
</files>
RewriteEngine on
RewriteCond %{HTTP_HOST} !=on
RewriteRule ^/(.*) https://www.mydomain.com/$1 [R,L]
SSLEngine On
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/mydomain.com/fullchain.pem
1,30 Top