Hebdomadaire Shaarli
Semaine 46 (November 11, 2024)
L’ajout d’un filigrane sur vos documents est une bonne pratique mais certains organismes peuvent avoir besoin d’un document vierge (banques, services publics, etc.)
![thumbnail](/cache/thumb/a930e8bb1ce74ee4860f141a6f06fc38/ffcda11efa99ce2a1b6c60ce3c7c4ca275d2f802125901.jpg)
Craft beautiful emails effortlessly with Maily, the powerful email editor that ensures impeccable communication across all major clients.
![thumbnail](/cache/thumb/17e92af732c317e429f4ac108275af4d/5ad4c3459e0df4bee8b0a13aa2066a496649a5aa125901.jpg)
After comparing some notes around the Internet I've came up with this "catch-all" for in Apache. So not just one vhost, anything will catch it. Keeping the configs clean and simple.
Put the following in the conf-enabled directory (Debian based systems):
Alias /.well-known/acme-challenge/ "/var/www/html/.well-known/acme-challenge/"
<Directory "/var/www/html/">
Options None
AllowOverride None
ForceType text/plain
RedirectMatch 404 "^(?!/\.well-known/acme-challenge/[\w-]{43}$)"
</Directory>
Enable it with a2enconf, reload the Apache service. Make sure the directory /var/www/html/.well-known/acme-challenge/ is created and owned by the Apache data user, e.g. www-data. It can be any directory, as long as you keep it consistent.
Then run this command:
certbot certonly --webroot --agree-tos --email youradmin@example.com --webroot-path /var/www/html/ --domain yoursite.example.com