[SECURITE EASPHP] - .htaccess sur ma machine marche po.

- .htaccess sur ma machine marche po. [SECURITE EASPHP] - Programmation

Marsh Posté le 04-02-2002 à 23:09:16    

Bonjour etant donné que par defaut tout le monde peux visiter mon ordi kan jai easyphp de lancer je voudrais securiser tout ca avec un htaccess. prob, ca marche pas . pq? j'en sais rien, je suis sous WINxp pro, j'ai tout bien configurer ( je crois) et ca va pas il dis ke le mots de pass que j'entre est pas bon !
j'ai regarder le real path et jai bien mis le real path mon fichier htaccess ressemble a ca :  
 
AuthUserFile  /easyphp/www/.htpassw
AuthGroupFile /dev/null
AuthName ByPassword
AuthType Basic
 
<limit GET>
require valid-user
</Limit>
 
 
sinon jai essayer en mettant la lettre du lecteur ki est f:
 
AuthUserFile  f:/easyphp/www/.htpassw
AuthGroupFile /dev/null
AuthName ByPassword
AuthType Basic
 
<limit GET>
require valid-user
</Limit>
 
et la ca me dis internal server error ( encore pire )
 
alors si qqun a deja fé ca si il pouvait me venir en aide :/
 
P.S.: j'ai deja configurer ca sur un hebergeur payant et ca va !!!  
 
 
a+ merci d'avance

Reply

Marsh Posté le 04-02-2002 à 23:09:16   

Reply

Marsh Posté le 04-02-2002 à 23:16:27    

il faut mettre tes mdp en clair dans ton fichier .htpassword


---------------
Ma galerie photo créée avec Piwigo et hébergée sur Piwigo.com
Reply

Marsh Posté le 04-02-2002 à 23:19:48    

Tu veux dire non crypté??? ok j'essaye merci !

Reply

Marsh Posté le 04-02-2002 à 23:22:07    

ca va tjrs pas je comprend pas.......
dois je mettre autre chose dans le HTACCESSS???????

Reply

Marsh Posté le 04-02-2002 à 23:22:33    

moi il me dit que ".htacces" n est pas un nom de fichier valide, ( normal )
mais je dois faire comment ?

Reply

Marsh Posté le 04-02-2002 à 23:24:06    

gigigan pour ca tu dois ouvrir wordpad par exemple et enregistrer sous ca devrais aller mais ca repond pas a ma question  :cry:  :cry:  :cry:  :cry:  :cry:

Reply

Marsh Posté le 05-02-2002 à 01:20:46    

z0rglub a écrit a écrit :

il faut mettre tes mdp en clair dans ton fichier .htpassword  




 
t fou toi! :heink:


---------------
Suri.morkitu.org : Balades au coeur de la ville...
Reply

Marsh Posté le 05-02-2002 à 01:23:56    

effectivement sous windows, les mots de passe des htaccess ne sont pas cryptés ;)
 
dans ton fichier httpd.conf, la directive de ton répertoire est bien :
 
<Directory "le rep contenant le fichier des pass">
AllowOverride all
</Directory>
 
et puis regarde tes logs d'erreur, et dis nous ce que apache te dit !


---------------
Sujet sur les cartes son audiophiles pour mélomanes et musiciens & DAC+ADC
Reply

Marsh Posté le 05-02-2002 à 06:53:31    

heu suri en koi je suis fou? lol  :heink:    :heink:  
 
bon voila les log de apache :  
 
[Mon Feb 04 22:32:48 2002] [error] [client 127.0.0.1] (2)No such file or directory: Could not open password file: f:/[sites ezphp]/apache/localhost/www/.htpasswd
[Mon Feb 04 22:32:48 2002] [error] [client 127.0.0.1] user squid not found: /
[Mon Feb 04 22:33:09 2002] [error] [client 127.0.0.1] (2)No such file or directory: Could not open password file: f:/[sites ezphp]/apache/www/.htpasswd
[Mon Feb 04 22:33:09 2002] [error] [client 127.0.0.1] user squid not found: /
[Mon Feb 04 22:33:12 2002] [error] [client 127.0.0.1] (2)No such file or directory: Could not open password file: f:/[sites ezphp]/apache/www/.htpasswd
[Mon Feb 04 22:33:12 2002] [error] [client 127.0.0.1] user squid not found: /
[Mon Feb 04 22:33:32 2002] [error] [client 127.0.0.1] (2)No such file or directory: Could not open password file: f:/[sites ezphp]/apache/.htpasswd
[Mon Feb 04 22:33:32 2002] [error] [client 127.0.0.1] user squid not found: /
[Mon Feb 04 22:33:37 2002] [error] [client 127.0.0.1] (2)No such file or directory: Could not open password file: f:/[sites ezphp]/apache/.htpasswd
[Mon Feb 04 22:33:37 2002] [error] [client 127.0.0.1] user squid not found: /
[Mon Feb 04 22:37:45 2002] [alert] [client 127.0.0.1] f:/[sites ezphp]/www/.htaccess: Invalid auth file type: ezphp]\www\.htpasswd
[Mon Feb 04 22:37:48 2002] [alert] [client 127.0.0.1] f:/[sites ezphp]/www/.htaccess: Invalid auth file type: ezphp]\www\.htpasswd
[Mon Feb 04 22:37:49 2002] [alert] [client 127.0.0.1] f:/[sites ezphp]/www/.htaccess: Invalid auth file type: ezphp]\www\.htpasswd
[Mon Feb 04 22:38:03 2002] [alert] [client 127.0.0.1] f:/[sites ezphp]/www/.htaccess: Invalid auth file type: ezphp]/www/.htpasswd
[Mon Feb 04 22:38:04 2002] [alert] [client 127.0.0.1] f:/[sites ezphp]/www/.htaccess: Invalid auth file type: ezphp]/www/.htpasswd
[Mon Feb 04 22:38:44 2002] [alert] [client 127.0.0.1] f:/[sites ezphp]/www/.htaccess: Invalid auth file type: ezphp]/www/.htpasswd
[Mon Feb 04 22:38:48 2002] [alert] [client 127.0.0.1] f:/[sites ezphp]/www/.htaccess: Invalid auth file type: ezphp]/www/.htpasswd
[Mon Feb 04 22:38:48 2002] [alert] [client 127.0.0.1] f:/[sites ezphp]/www/.htaccess: Invalid auth file type: ezphp]/www/.htpasswd
[Mon Feb 04 22:38:49 2002] [alert] [client 127.0.0.1] f:/[sites ezphp]/www/.htaccess: Invalid auth file type: ezphp]/www/.htpasswd
[Mon Feb 04 22:38:58 2002] [alert] [client 127.0.0.1] f:/[sites ezphp]/www/.htaccess: Invalid auth file type: ezphp]/www/.htpasswd
[Mon Feb 04 22:39:30 2002] [error] [client 127.0.0.1] (2)No such file or directory: Could not open password file: /[sites%20ezphp]/www/.htpasswd
[Mon Feb 04 22:39:30 2002] [error] [client 127.0.0.1] user squid not found: /
[Mon Feb 04 22:39:33 2002] [error] [client 127.0.0.1] (2)No such file or directory: Could not open password file: /[sites%20ezphp]/www/.htpasswd
[Mon Feb 04 22:39:33 2002] [error] [client 127.0.0.1] user squid not found: /
[Mon Feb 04 22:39:49 2002] [error] [client 127.0.0.1] (2)No such file or directory: Could not open password file: f:/[sites%20ezphp]/www/.htpasswd
[Mon Feb 04 22:39:49 2002] [error] [client 127.0.0.1] user squid not found: /
[Mon Feb 04 22:39:52 2002] [error] [client 127.0.0.1] (2)No such file or directory: Could not open password file: f:/[sites%20ezphp]/www/.htpasswd
[Mon Feb 04 22:39:52 2002] [error] [client 127.0.0.1] user squid not found: /
[Mon Feb 04 22:39:54 2002] [error] [client 127.0.0.1] (2)No such file or directory: Could not open password file: f:/[sites%20ezphp]/www/.htpasswd
[Mon Feb 04 22:39:54 2002] [error] [client 127.0.0.1] user squid not found: /
[Mon Feb 04 22:46:23 2002] [error] [client 127.0.0.1] (2)No such file or directory: Could not open password file: f:/[sites%20ezphp]/www/.htpasswd
[Mon Feb 04 22:46:23 2002] [error] [client 127.0.0.1] user squid not found: /
[Mon Feb 04 22:46:24 2002] [error] [client 127.0.0.1] (2)No such file or directory: Could not open password file: f:/[sites%20ezphp]/www/.htpasswd
[Mon Feb 04 22:46:24 2002] [error] [client 127.0.0.1] user squid not found: /
[Mon Feb 04 22:48:15 2002] [error] [client 127.0.0.1] (2)No such file or directory: Could not open password file: /usr/local/etc/httpd/htdocs/localhost/.htpassw
[Mon Feb 04 22:48:15 2002] [error] [client 127.0.0.1] user squid not found: /
[Mon Feb 04 22:48:17 2002] [error] [client 127.0.0.1] (2)No such file or directory: Could not open password file: /usr/local/etc/httpd/htdocs/localhost/.htpassw
[Mon Feb 04 22:48:17 2002] [error] [client 127.0.0.1] user squid not found: /
[Mon Feb 04 22:49:24 2002] [error] [client 127.0.0.1] (2)No such file or directory: Could not open password file: /usr/local/etc/httpd/htdocs/localhost/.htpassw
[Mon Feb 04 22:49:24 2002] [error] [client 127.0.0.1] user squid not found: /
[Mon Feb 04 22:49:26 2002] [error] [client 127.0.0.1] (2)No such file or directory: Could not open password file: /usr/local/etc/httpd/htdocs/localhost/.htpassw
[Mon Feb 04 22:49:26 2002] [error] [client 127.0.0.1] user squid not found: /
[Mon Feb 04 23:11:08 2002] [alert] [client 127.0.0.1] f:/[sites ezphp]/www/.htaccess: Invalid auth file type: ezphp]/www/.htpasswd
[Mon Feb 04 23:11:09 2002] [alert] [client 127.0.0.1] f:/[sites ezphp]/www/.htaccess: Invalid auth file type: ezphp]/www/.htpasswd
[Mon Feb 04 23:11:09 2002] [alert] [client 127.0.0.1] f:/[sites ezphp]/www/.htaccess: Invalid auth file type: ezphp]/www/.htpasswd
[Mon Feb 04 23:11:10 2002] [alert] [client 127.0.0.1] f:/[sites ezphp]/www/.htaccess: Invalid auth file type: ezphp]/www/.htpasswd
[Mon Feb 04 23:11:10 2002] [alert] [client 127.0.0.1] f:/[sites ezphp]/www/.htaccess: Invalid auth file type: ezphp]/www/.htpasswd
[Mon Feb 04 23:11:10 2002] [alert] [client 127.0.0.1] f:/[sites ezphp]/www/.htaccess: Invalid auth file type: ezphp]/www/.htpasswd
[Mon Feb 04 23:11:11 2002] [alert] [client 127.0.0.1] f:/[sites ezphp]/www/.htaccess: Invalid auth file type: ezphp]/www/.htpasswd
[Mon Feb 04 23:11:12 2002] [alert] [client 127.0.0.1] f:/[sites ezphp]/www/.htaccess: Invalid auth file type: ezphp]/www/.htpasswd
[Mon Feb 04 23:11:33 2002] [alert] [client 127.0.0.1] f:/[sites ezphp]/www/.htaccess: Invalid auth file type: ezphp]/www/.htpasswd
[Mon Feb 04 23:11:34 2002] [alert] [client 127.0.0.1] f:/[sites ezphp]/www/.htaccess: Invalid auth file type: ezphp]/www/.htpasswd
[Mon Feb 04 23:11:35 2002] [alert] [client 127.0.0.1] f:/[sites ezphp]/www/.htaccess: Invalid auth file type: ezphp]/www/.htpasswd
[Mon Feb 04 23:11:35 2002] [alert] [client 127.0.0.1] f:/[sites ezphp]/www/.htaccess: Invalid auth file type: ezphp]/www/.htpasswd
[Mon Feb 04 23:11:48 2002] [error] [client 127.0.0.1] (2)No such file or directory: Could not open password file: /www/.htpasswd
[Mon Feb 04 23:11:48 2002] [error] [client 127.0.0.1] user squid not found: /
[Mon Feb 04 23:11:52 2002] [error] [client 127.0.0.1] (2)No such file or directory: Could not open password file: /www/.htpasswd
[Mon Feb 04 23:11:52 2002] [error] [client 127.0.0.1] user squid not found: /
[Mon Feb 04 23:12:11 2002] [alert] [client 127.0.0.1] f:/[sites ezphp]/www/.htaccess: Invalid auth file type: ezphp]/www/.htpasswd
[Mon Feb 04 23:12:38 2002] [error] [client 127.0.0.1] (2)No such file or directory: Could not open password file: f:/[sites ezphp]/apache/.htpasswd
[Mon Feb 04 23:12:38 2002] [error] [client 127.0.0.1] user squid not found: /
[Mon Feb 04 23:12:41 2002] [error] [client 127.0.0.1] (2)No such file or directory: Could not open password file: f:/[sites ezphp]/apache/.htpasswd
[Mon Feb 04 23:12:41 2002] [error] [client 127.0.0.1] user squid not found: /
[Mon Feb 04 23:20:48 2002] [error] [client 127.0.0.1] (2)No such file or directory: Could not open password file: f:/[sites ezphp]/apache/.htpasswd
[Mon Feb 04 23:20:48 2002] [error] [client 127.0.0.1] user squid not found: /
[Mon Feb 04 23:20:50 2002] [error] [client 127.0.0.1] (2)No such file or directory: Could not open password file: f:/[sites ezphp]/apache/.htpasswd
[Mon Feb 04 23:20:50 2002] [error] [client 127.0.0.1] user squid not found: /
[Mon Feb 04 23:21:14 2002] [error] [client 127.0.0.1] (2)No such file or directory: Could not open password file: /.htpasswd
[Mon Feb 04 23:21:14 2002] [error] [client 127.0.0.1] user squid not found: /
[Mon Feb 04 23:21:17 2002] [error] [client 127.0.0.1] (2)No such file or directory: Could not open password file: /.htpasswd
[Mon Feb 04 23:21:17 2002] [error] [client 127.0.0.1] user squid not found: /
[Mon Feb 04 23:21:35 2002] [alert] [client 127.0.0.1] f:/[sites ezphp]/www/.htaccess: Invalid auth file type: ezphp]/.htpasswd
[Mon Feb 04 23:24:37 2002] [alert] [client 217.136.51.50] f:/[sites ezphp]/www/.htaccess: Invalid auth file type: ezphp]/.htpasswd
[Mon Feb 04 23:24:41 2002] [alert] [client 217.136.51.50] f:/[sites ezphp]/www/.htaccess: Invalid auth file type: ezphp]/.htpasswd
[Mon Feb 04 23:24:42 2002] [alert] [client 217.136.51.50] f:/[sites ezphp]/www/.htaccess: Invalid auth file type: ezphp]/.htpasswd
[Mon Feb 04 23:24:43 2002] [alert] [client 217.136.51.50] f:/[sites ezphp]/www/.htaccess: Invalid auth file type: ezphp]/.htpasswd
[Mon Feb 04 23:24:44 2002] [alert] [client 217.136.51.50] f:/[sites ezphp]/www/.htaccess: Invalid auth file type: ezphp]/.htpasswd
[Mon Feb 04 23:24:44 2002] [alert] [client 217.136.51.50] f:/[sites ezphp]/www/.htaccess: Invalid auth file type: ezphp]/.htpasswd
[Mon Feb 04 23:24:45 2002] [alert] [client 217.136.51.50] f:/[sites ezphp]/www/.htaccess: Invalid auth file type: ezphp]/.htpasswd
[Mon Feb 04 23:24:49 2002] [alert] [client 217.136.51.50] f:/[sites ezphp]/www/.htaccess: Invalid auth file type: ezphp]/.htpasswd
[Mon Feb 04 23:24:50 2002] [alert] [client 217.136.51.50] f:/[sites ezphp]/www/.htaccess: Invalid auth file type: ezphp]/.htpasswd
[Mon Feb 04 23:24:52 2002] [alert] [client 217.136.51.50] f:/[sites ezphp]/www/.htaccess: Invalid auth file type: ezphp]/.htpasswd
[Mon Feb 04 23:24:56 2002] [alert] [client 217.136.51.50] f:/[sites ezphp]/www/.htaccess: Invalid auth file type: ezphp]/.htpasswd
[Mon Feb 04 23:25:02 2002] [alert] [client 217.136.51.50] f:/[sites ezphp]/www/.htaccess: Invalid auth file type: ezphp]/.htpasswd
[Mon Feb 04 23:25:03 2002] [alert] [client 217.136.51.50] f:/[sites ezphp]/www/.htaccess: Invalid auth file type: ezphp]/.htpasswd
[Mon Feb 04 23:36:26 2002] [alert] [client 127.0.0.1] f:/[sites ezphp]/www/.htaccess: Invalid auth file type: ezphp]/.htpasswd
[Mon Feb 04 23:36:39 2002] [error] [client 127.0.0.1] (2)No such file or directory: Could not open password file: f:/[sites ezphp]/apache/htpasswd
[Mon Feb 04 23:36:39 2002] [error] [client 127.0.0.1] user squid not found: /
[Mon Feb 04 23:36:43 2002] [error] [client 127.0.0.1] (2)No such file or directory: Could not open password file: f:/[sites ezphp]/apache/htpasswd
[Mon Feb 04 23:36:43 2002] [error] [client 127.0.0.1] user squid not found: /
[Mon Feb 04 23:36:45 2002] [error] [client 127.0.0.1] (2)No such file or directory: Could not open password file: f:/[sites ezphp]/apache/htpasswd
[Mon Feb 04 23:36:45 2002] [error] [client 127.0.0.1] user squid not found: /
 
 
pourtant jai bien mis squid comme username
pour ce ki est de : <Directory "le rep contenant le fichier des pass">  
AllowOverride all  
</Directory>  
 
ou se trouve ce fichier??
Merci de ta reponse tharike a+ !

Reply

Marsh Posté le 05-02-2002 à 07:46:19    

Fait plutot comme ça dans ton htaccess :
Order deny,allow  
allow from 127.0.0.1  
deny from all
 
Comme ça ça interdit à tt le monde et n'autorise uniquement si c ton ordi qui se connecte. En + pas de mdp à taper à chaque fois

Reply

Marsh Posté le 05-02-2002 à 07:46:19   

Reply

Marsh Posté le 05-02-2002 à 08:09:39    

suri a écrit a écrit :

 
 
t fou toi! :heink:  




 
ben non, sous windows c comme ça, j'y eut rien, suffit de pas placer son fichier de mot de passe accessible par le serveur WEB pour un max de sécurité.


---------------
Ma galerie photo créée avec Piwigo et hébergée sur Piwigo.com
Reply

Marsh Posté le 05-02-2002 à 08:39:36    

z0rglub a écrit a écrit :

 
 
ben non, sous windows c comme ça




 
ah... je savais pas...
bon alors c moi qui est fou :D  :crazy:


---------------
Suri.morkitu.org : Balades au coeur de la ville...
Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed