Bonjour,
Je bute sur une demande d'authentification pour accéder à un répertoire de mon site (monitoring) en passant par la configuration du VirtualHost correspondant. La méthode par htaccess échoue également.
Configuration :
Ubuntu Server 12.04
Apache2 2.2.22
Modules concernés activés : authz_default authz_groupfile auth_basic authz_host rewrite authn_file authz_user
Fichier VirtualHost du site
Je n'ai aucune erreur particulière avec ce fichier. Je me connecte par l'url monsite.org/monitoring et n'obtient aucune demande d'authentification ! Pourriez-vous me donner une piste ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28 <VirtualHost *:80> ServerAdmin xxxxx@xxxxx.com ServerName www.monsite.org ServerAlias monsite.org DocumentRoot /home/monsite/www ErrorLog ${APACHE_LOG_DIR}/monsite-error.log CustomLog ${APACHE_LOG_DIR}/monsite-access.log combined LogLevel warn SuexecUserGroup monsite monsite <Directory /home/monsite/www> Options -Indexes +FollowSymlinks +MultiViews AllowOverride All Order allow,deny Allow from All </Directory> <Directory /home/monsite/www/monitoring> Options +Indexes +FollowSymLinks Order allow,deny Allow from all AuthType Basic AuthName 'Identification' AuthUserFile '/etc/apache2/.htpasswd' AuthGroupFile '/dev/null' Require valid-user </Directory> </VirtualHost>
Merci.
Partager