Sources:
sudo apt-get install libapache2-mod-authnz-external pwauth sudo apt-get install libapache2-mod-authz-unixgroup sudo a2enmod authnz_external authz_unixgroup sudo service apache2 reload vi /etc/apache2/apache2.conf <IfModule mod_authnz_external.c> AddExternalAuth pwauth /usr/sbin/pwauth SetExternalAuthMethod pwauth pipe </IfModule> dans .htaccess: AuthType Basic AuthName "Identification requise (utilisation de votre compte linux)" AuthBasicProvider external AuthExternal pwauth Require unix-group www-data
Source: http://stackoverflow.com/questions/8697706/exclude-one-folder-in-htaccess-protected-directory
vi .htaccess: Satisfy any