さくらのVPSでcentOS7をインストールして、サイトを構築しております。
SSL証明書をLets Encryptでいったん導入しましたが、強制的にhttpsになってしまい、Not Foundのメッセージが表示されてしまいます。
そこでもういちどSSLの設定をやり直したいと思っているのですが
certbot --apache -d sample.com
を実行し、
What would you like to do? 1:Attempt to reinstall this existing certificate 2:Renew & replace the cert(limit ~5 per 7 days)
となり、2を選択ししばらくすると
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. -------------------------------------------------------------------------------
が表示され、ここで2を選択すると
Failed redirect for sample.com Unable to set enhancement redirect for sample.com Unable to find corresponding HTTP vhost; Unable to create one as intended addresses conflict; Current configuration does not support automated redirection
となってしまいます。
このような場合どのようにすればよいのでしょうか?
よろしくお願い致します。