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 revisionBoth sides next revision
computing:apachesurvival [2021/10/30 02:14] oemb1905computing:apachesurvival [2021/10/31 05:06] oemb1905
Line 195: Line 195:
   sudo apt install certbot letsencrypt python3-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:
computing/apachesurvival.txt · Last modified: 2024/02/20 23:00 by oemb1905