Snippets Collections
sudo su
printf "<user>:$(openssl passwd -apr1 <your password>)\n" >> /etc/nginx/.htpasswd
<IfModule mod_rewrite.c>
  RewriteEngine On
</IfModule>
RewriteCond %{HTTP_HOST} ^olddomain\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.olddomain\.com$
RewriteRule ^(.*)$ "https\:\/\/newdomain\.ca\/$1" [R=301,L]
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
REWRITERULE ^(.*)$ http://dockerbackend/$1 [P]
 /root/.acme.sh/acme.sh --issue -d yourdomain.com --cert-file /etc/letsencrypt/live/yourdomain.com/cert.pem --key-file /etc/letsencrypt/live/yourdomain.com/privkey.pem --fullchain-file /etc/letsencrypt/live/yourdomain.com/fullchain.pem -w /home/yourdomain.com/public_html --force --debug
star

Wed Nov 22 2023 22:32:23 GMT+0000 (Coordinated Universal Time)

#nginx #ssl
star

Wed Feb 01 2023 00:57:45 GMT+0000 (Coordinated Universal Time)

#htaccess #redirect #ssl
star

Fri Apr 22 2022 17:12:36 GMT+0000 (Coordinated Universal Time) https://www.ssls.com/knowledgebase/how-to-install-an-ssl-certificate-on-apache/?gclid

#bash #ssl #linux #apache #certificates
star

Fri Apr 22 2022 16:54:00 GMT+0000 (Coordinated Universal Time) https://devcenter.heroku.com/articles/ssl-certificate-self

#bash #ssl #linux #unix #certificate
star

Tue Jan 04 2022 21:27:35 GMT+0000 (Coordinated Universal Time)

#ssl #letsencrypt #linux #cyberpanel #docker
star

Sat Jan 01 2022 18:46:29 GMT+0000 (Coordinated Universal Time)

#ssl #letsencrypt #linux
star

Thu Oct 29 2020 14:38:39 GMT+0000 (Coordinated Universal Time) https://dev.to/adamkdean/automatic-ssl-with-let-s-encrypt-nginx-4nfk

##nginx #+ssl #https #ssl

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension