Salut!
Donc j'ai un ptit pb avec le .htaccess
voici mon @ a protéger dans mon httpd.conf:
# Virtual host webimg
<VirtualHost 192.168.2.2>
DocumentRoot /var/www/html/XXX.ath.cx
ServerName XXX.ath.cx
ServerSignature email
DirectoryIndex index.html index.htm index.shtml
</VirtualHost>
mon fichier de redirection nomé index.html dans XXX.ath.cx
<html>
<head>
<title> Site Webcam </title>
<meta http-equiv="refresh" content="0;URL=
http://XYYY.ath.cx/cgi-bin/w3cam.cgi">
</head>
</html>
J'ai fais
clipper ~ $ htpasswd -c .passwds
toto
New password:
Re-type new password:
Adding password for user toto
puis
un .htaccess
AuthType Basic
AuthUserFile /www/repertoire/.passwds
# endroit où vous conservez les mots de passe
AuthName "Entrez votre mot de passe" # ici vous indiquez ce qui figurera dans la barre de titre
# de la fenêtre
require valid-user
Quand je tape l'@ XXX.ath.cx c'est bon, il faut un mdp mais
http://XYYY.ath.cx/cgi-bin/w3cam.cgi il ne faut rien.
J'ai enregister le fichier .htaccess dans le rep cgi-bin et le rep XXX.ath.cx
Merci