How to Install an SSL Certificate for an OpenLiteSpeed Website with LetsEncrypt

How to Install an SSL Certificate for an OpenLiteSpeed Website with LetsEncrypt

Tony Teaches Tech

3 года назад

11,349 Просмотров

Learn how to install a free LetsEncrypt SSL certificate for your OpenLiteSpeed website with certbot and a secure HTTPS listener on port 443.

Command:
certbot certonly --webroot -w /usr/local/lsws/Example/wordpress -d example.com,www.example.com

Code snippet:
Redirect all HTTP traffic to HTTPS with the following code snippet:
rewriteCond %{HTTPS} !on
rewriteCond %{HTTP:X-Forwarded-Proto} !https
rewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]

How to automatically renew your SSL with a cron job 👉 https://youtu.be/J6LTMsa5bPM

Find more at https://tonyteaches.tech
Check out my vlog channel @TonyFlorida

#openlitespped #ssl #letsencrypt #https

Тэги:

#openlitespeed_ssl #openlitespeed_letsencrypt #openlitespeed #ssl_install_server_ubuntu_openlitespeed #letsencrypt_openlitespeed #letsencrypt_openlitespeed_debian #certbot_openlitespeed #openlitespeed_with_certbot #openlitespeed_listener #openlitespeed_redirect_http_to_https
Ссылки и html тэги не поддерживаются


Комментарии: