From c9998511bf54465c7f5c35df63c87a13f2ca0b1f Mon Sep 17 00:00:00 2001 From: Max HeadRoom Date: Fri, 31 Jan 2025 16:59:03 +0000 Subject: [PATCH] Update VirtualHostBasedName.md --- VirtualHostBasedName.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/VirtualHostBasedName.md b/VirtualHostBasedName.md index 50400aa..61fffdc 100644 --- a/VirtualHostBasedName.md +++ b/VirtualHostBasedName.md @@ -1,8 +1,10 @@ +```console user@host:/etc/apache2/sites-available$ sudo cp git.xab.cat.conf dev.sensememoria.cat.conf user@host:/etc/apache2/sites-available$ sudo nano dev.sensememoria.cat.conf user@host:/etc/apache2/sites-available$ sudo a2ensite dev.sensememoria.cat.conf user@host:/etc/apache2/sites-available$ sudo systemctl force-reload apache2 - +``` +```console user@host:/etc/apache2/sites-available$ cat dev.sensememoria.cat.conf ServerAdmin sau@escolteu.me @@ -12,9 +14,11 @@ user@host:/etc/apache2/sites-available$ cat dev.sensememoria.cat.conf ErrorLog /var/log/apache2/dev.xab.cat.error.log CustomLog /var/log/apache2/dev.xab.cat.access.log combined - +``` +```console user@host:/etc/apache2/sites-available$ sudo apt install certbot python3-certbot-nginx -y # install certbot and nginx support - +``` +```console user@host:/etc/apache2/sites-available$ sudo certbot -v run --apache -d dev.sensememoria.cat Saving debug log to /var/log/letsencrypt/letsencrypt.log Plugins selected: Authenticator apache, Installer apache @@ -42,7 +46,9 @@ If you like Certbot, please consider supporting our work by: * Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate * Donating to EFF: https://eff.org/donate-le - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +``` +```console user@host:/etc/apache2/sites-available$ cat dev.sensememoria.cat.conf ServerAdmin sau@escolteu.me @@ -57,3 +63,4 @@ SSLCertificateFile /etc/letsencrypt/live/dev.sensememoria.cat/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/dev.sensememoria.cat/privkey.pem Include /etc/letsencrypt/options-ssl-apache.conf +```