Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
notes:solaris_tips [2021/04/30 12:05]
admin [Let's encrypt]
notes:solaris_tips [2021/05/01 09:48]
admin [Let's encrypt]
Line 14: Line 14:
 $ wget -O acme.sh https://​get.acme.sh $ wget -O acme.sh https://​get.acme.sh
 $ ./acme.sh install $ ./acme.sh install
 +$ crontab -l
 +48 0 * * * "/​home/​dambi/​.acme.sh"/​acme.sh --cron --home "/​home/​dambi/​.acme.sh"​ > /dev/null
 </​code>​ </​code>​
   * issue a certificate   * issue a certificate
Line 28: Line 30:
 === Configure Apache to use Let's Encrypt certificates === === Configure Apache to use Let's Encrypt certificates ===
   * enable SSL in Apache   * enable SSL in Apache
 +  * [[https://​cwiki.apache.org/​confluence/​display/​httpd/​RedirectSSL|redirect HTTP to HTTPS ]]
 <​code>​ <​code>​
 # vim /​etc/​apache2/​2.4/​httpd.conf # vim /​etc/​apache2/​2.4/​httpd.conf
Line 36: Line 39:
 LoadModule ssl_module libexec/​mod_ssl.so LoadModule ssl_module libexec/​mod_ssl.so
 ... ...
 +<​VirtualHost *:80>
 +        ServerName tio.ddns.net
 +        Redirect / https://​tio.ddns.net/​
 +</​VirtualHost>​
 +
 <​VirtualHost *:443> <​VirtualHost *:443>
         ServerName tio.ddns.net         ServerName tio.ddns.net
notes/solaris_tips.txt ยท Last modified: 2024/03/05 16:43 by admin
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0