Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1341 connectés 

  FORUM HardWare.fr
  Programmation

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

 



 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

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

n°96756
SquiiiD
be cool !
Posté le 04-02-2002 à 23:09:16  profilanswer
 

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

mood
Publicité
Posté le 04-02-2002 à 23:09:16  profilanswer
 

n°96760
z0rglub
Posté le 04-02-2002 à 23:16:27  profilanswer
 

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
n°96762
SquiiiD
be cool !
Posté le 04-02-2002 à 23:19:48  profilanswer
 

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

n°96764
SquiiiD
be cool !
Posté le 04-02-2002 à 23:22:07  profilanswer
 

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

n°96765
gigigan
...JJ pour les intimes...
Posté le 04-02-2002 à 23:22:33  profilanswer
 

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

n°96767
SquiiiD
be cool !
Posté le 04-02-2002 à 23:24:06  profilanswer
 

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:

n°96797
Suri
Darksurious
Posté le 05-02-2002 à 01:20:46  profilanswer
 

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...
n°96798
tharkie
Effaré par l'idiotie humaine
Posté le 05-02-2002 à 01:23:56  profilanswer
 

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
n°96809
SquiiiD
be cool !
Posté le 05-02-2002 à 06:53:31  profilanswer
 

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+ !

n°96810
Je@nb
Kindly give dime
Posté le 05-02-2002 à 07:46:19  profilanswer
 

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

mood
Publicité
Posté le 05-02-2002 à 07:46:19  profilanswer
 

n°96813
z0rglub
Posté le 05-02-2002 à 08:09:39  profilanswer
 

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
n°96815
Suri
Darksurious
Posté le 05-02-2002 à 08:39:36  profilanswer
 

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...

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation

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

 

Sujets relatifs
htaccess qui fonctionne pas ![ C ] manip sur une String marche sous linux et pas sous windows
[javascript] comment ca marche confirm()?.htaccess
[asm encore et toujours] pour des matrices... ca marche comment ??Pk ce script ne marche t'il pas ?
[JS] pourquoi ca marche pas ca ?[PHP] pourquoi ca marche pas???
[PHP] Ben l'authentification http par php ca marche pas chez free .??Source code de Car park ticket machine:
Plus de sujets relatifs à : [SECURITE EASPHP] - .htaccess sur ma machine marche po.


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR