User Tools

Site Tools


computing:apachesurvival

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
computing:apachesurvival [2020/03/27 13:24] oemb1905computing:apachesurvival [2021/10/31 05:06] oemb1905
Line 193: Line 193:
 Visit both sites using Firefox, and ensure they resovle.  Now, set up Let's Encrypt so that you have your TLS certificates managed by a proper authority.  I have never been able to get the stock certbot instructions to work, so I found this on a certbot tech support git repo, and have used it every since   Visit both sites using Firefox, and ensure they resovle.  Now, set up Let's Encrypt so that you have your TLS certificates managed by a proper authority.  I have never been able to get the stock certbot instructions to work, so I found this on a certbot tech support git repo, and have used it every since  
  
-  sudo apt install certbot letsencrypt python-certbot-apache+  sudo apt install certbot letsencrypt python3-certbot-apache
   sudo certbot --authenticator standalone --installer apache -d site1.com --pre-hook "systemctl stop apache2" --post-hook "systemctl start apache2"   sudo certbot --authenticator standalone --installer apache -d site1.com --pre-hook "systemctl stop apache2" --post-hook "systemctl start apache2"
 +  
 +This certbot command can be adjusted for nginx instances too:
 +
 +  sudo certbot --authenticator standalone --installer nginx -d site1.com --pre-hook "systemctl stop apache2" --post-hook "systemctl start nginx"
  
 Run the second command again, but adjust it for site2.com.  Now, restart the service: Run the second command again, but adjust it for site2.com.  Now, restart the service:
Line 289: Line 293:
 This tutorial is a designated "Invariant Section" of the "Technotronic" section of Haack's Wiki as described on the [[https://jonathanhaack.com/dokuwiki/doku.php?id=start|Start Page]]. This tutorial is a designated "Invariant Section" of the "Technotronic" section of Haack's Wiki as described on the [[https://jonathanhaack.com/dokuwiki/doku.php?id=start|Start Page]].
  
- --- //[[jonathan@haacksnetworking.com|oemb1905]] 2020/01/01 14:56//+ --- //[[jonathan@haacksnetworking.com|oemb1905]] 2021/10/29 20:14//
computing/apachesurvival.txt · Last modified: 2024/02/20 23:00 by oemb1905