User Tools

Site Tools


administration_linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

administration_linux [2016/10/25 11:23]
keul created
administration_linux [2018/05/26 18:00]
Line 1: Line 1:
-===== Gestion des .htaccess ===== 
  
-==== Restreindre un dossier pour les utilisateurs linux d'un groupe uniquement ==== 
- 
-Sources: http://​icephoenix.us/​linuxunix/​apache-and-http-authentication-with-pam/​ https://​code.google.com/​p/​mod-auth-external/​wiki/​ModAuthzUnixGroup 
- 
-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 
- 
- 
-==== Réautoriser un dossier spécifique pour tous ==== 
-source: http://​stackoverflow.com/​questions/​8697706/​exclude-one-folder-in-htaccess-protected-directory 
-vi .htaccess: 
-Satisfy any 
administration_linux.txt · Last modified: 2018/05/26 18:00 (external edit)