```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
ServerName dev.sensememoria.cat
ServerAlias www.dev.sensememoria.cat
DocumentRoot /home/user/public_html/dev
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
Requesting a certificate for dev.sensememoria.cat
Performing the following challenges:
http-01 challenge for dev.sensememoria.cat
Waiting for verification...
Cleaning up challenges
Successfully received certificate.
Certificate is saved at: /etc/letsencrypt/live/dev.sensememoria.cat/fullchain.pem
Key is saved at: /etc/letsencrypt/live/dev.sensememoria.cat/privkey.pem
This certificate expires on 2025-05-01.
These files will be updated when the certificate renews.
Certbot has set up a scheduled task to automatically renew this certificate in the background.
Deploying certificate
Deploying Certificate to VirtualHost /etc/apache2/sites-enabled/dev.sensememoria.cat.conf
Successfully deployed certificate for dev.sensememoria.cat to /etc/apache2/sites-enabled/dev.sensememoria.cat.conf
Enhancement redirect was already set.
Congratulations! You have successfully enabled HTTPS on https://dev.sensememoria.cat
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
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
ServerName dev.sensememoria.cat
ServerAlias www.dev.sensememoria.cat
DocumentRoot /home/user/public_html/dev
ErrorLog /var/log/apache2/dev.xab.cat.error.log
CustomLog /var/log/apache2/dev.xab.cat.access.log combined
# Example SSL configuration
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
```