November 19, 2023

Add a new website to a server running nginx, LetsEncrypt HTTPS and Certbot

This wiki note is a follow up from https://yctct.com/setup-webserver to add a second website on the same server.

1: In the DNS, point subdomain to IP address of VPS.

2: Follow FedFree instructions: https://fedfree.org/docs/http/debian-nginx.html#add-a-new-website

3: Generate a LetsEncrypt certificate for the new website:

# certbot certonly --webroot -w /var/www/example.com --must-staple --rsa-key-size 4096 --agree-tos -w /var/www/letsencrypt -d example.com --register-unsafely-without-email
# ls /etc/letsencrypt/live/ # show that example.com directory is created

About –webroot: https://eff-certbot.readthedocs.io/en/stable/using.html#webroot.

4: Back up LetsEncrypt directory: https://yctct.com/backup-letsencrypt-folder-from-remote-to-local

5: test:

# nginx -t

5: Restart nginx:

# systemctl restart nginx

✍✍✍✍✍✍✍✍✍✍✍✍✍✍

I do self-funded research and I'm writing a book.

> What's the book about?

About technologies and epistemology.

Meaning, technologies can foster agency. No doubt. But I am also asking:

Can technologies make us blind?

I posted a summary of the prologue on the homepage: https://yctct.com/

✍✍✍✍✍✍✍✍✍✍✍✍✍✍


personal computing command-line interface (cli) gnu linux trisquel shell literacy office applications wiki nginx hosting letsencrypt certbot

No affiliate links, no analytics, no tracking, no cookies. This work © 2016-2023 by r. philip is licensed under CC BY-ND 4.0 .   about me   contact me   all entries & tags   FAQ   GPG public key

GPG fingerprint: 2E0F FB60 7FEF 11D0 FB45 4DDC E979 E52A 7036 7A88