Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. 1.0. Open NGINX config file (the one responsible for projects.peercoin.net)
  2.  
  3. 1.1. Add this block as the first "location" block:
  4.  
  5. ```
  6. location ~ /.well-known {
  7. root /var/www/pc-showcase/;
  8. allow all;
  9. }
  10. ```
  11.  
  12. 1.2. Restart NGINX
  13.  
  14.  
  15. -----
  16.  
  17.  
  18. 2.0. Run the command (update the first part with your letsencrypt path):
  19.  
  20. ```
  21. sudo ~/letsencrypt/letsencrypt-auto certonly -a webroot --agree-tos --renew-by-default --webroot-path=/var/www/pc-showcase -d peercoin.net -d www.peercoin.net -d talk.peercoin.net -d projects.peercoin.net
  22. ```
  23.  
  24. 2.1 Copy the cert key path and paste to NGINX config
  25.  
  26. 2.2 Restart NGINX
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement