Connecting a free certificate from Let's Encrypt to Vesta

The Vesta control panel has the ability to automatically install a free certificate from Let's Encrypt. The domain of the site must be correct directed to the server.

  1. Switch to tab "WEB", hover over the desired site and click on the green button "EDIT" ("EDIT"):
  2. Check the box next to "SSL support" ("SSL Support"), then opposite "Lets Encrypt support" ("Lets Encrypt Support"), in field "SSL directory" ("SSL Home) leave public_html and at the bottom of the page click "Save" ("Save"):
  3. If everything goes well, a message will appear "Changes saved " (Changes have been saved"):In the tab "WEB" a mark will appear in front of the site "SSL support: Lets Encrypt":In the site settings fields "SSL certificate" ("SSL Certificate), "SSL certificate key" ("SSL Key") and "SSL / Intermediate Certification Authority" ("SSL Certificate Authority / Intermediate") will be filled with the data of the connected certificate:

After the certificate is connected, you can start configuring the site itself to work using a secure protocol. A redirect to HTTPS can be organized by placing a file in the root directory of the site .htaccess with content like this:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]