Apache basic authentication & authorization


Non classé

The basic AuthType is used for both authentication and authorization process. This is the most common way of doing. The credentials are encrypted and stored in a file. The command to create/update this credential file is htpasswd. htpasswd -c /PATH/.htpasswd USER1 htpasswd /PATH/.htpasswd USER2 htpasswd /PATH/.htpasswd USER2 The -c option should be used if the password […]

10 novembre 2025

Reverse proxy configuration with frontend authentication for applications who needs local apache configuration


Non classé

Typical usage is a web application who normally needs an Apache authentication BUT placed behind a reverse proxy who handles itself authentication/authorization If you need to define REMOTE_USER system variable on a proxied virtual host (backend) : 1° You need first to use an authentication + authorization process on the front-end virtual host (the one which forwards the requests to the […]

3 novembre 2025

Mettre à jour le statut « proxied » de Cloudflare


Non classé

J’utilise Cloudflare pour plusieurs de mes sites. Dans certains, cas, j’ai besoin de désactiver temporairement les services de Cloudflare (par exemple si je veux mettre à jour un certificat local Let’s Encrypt). J’avais besoin d’un script permettant de désactiver/réactiver facilement la statuts « Proxied »‘ d’une liste de noms. Vu qu’assez étrangement ça ne semblait pas encore […]

12 octobre 2024

Augmentation de l’espace disque ext4


Non classé

Voici un truc pour augmenter en une seule commande l’espace disque disponible de vos partition EXT4. Par défaut, le système de fichiers ext4 réserve 5% d’espace disque pour l’utilisateur système sur chaque partition. Cela peut apporter une surconsommation qui n’est pas nécessaire sur toutes les partitions. Vous pouvez appliquer ce truc sur toutes les partitions […]

18 février 2021

Indempotent script to generate cron from a string


Non classé

Hello,   I’ve just made this script to generate an indempotent crontab for a given string   #!/bin/bashif [ $# -lt 1 ]then echo « Syntax error : at least one argument is needed » echo « Syntax: $0 string [ -hmbf ] » echo « -h : display only the hour » echo « -m : display only the minute » echo […]

15 octobre 2016