Niss3 Posted October 26, 2005 Share Posted October 26, 2005 Hej ! Jag har fått igång .htaccess att fungera på min sida. Kolla själv : www.worldoflan.mine.nu/password2/ Men jag kan inte logga in ! Jag har både försökt med att skriva i krypteringskod mha sidorna angivna och med programmet. De olika ser ut såhär; Med program: test:$apr1$hd4.....$Cda76siWpraK/YFtMd5Vs1 Utan program (med http://cgi.carambole.se/manuals/htpasswd.htm): test:IX7BdMthIBUvI Men lösenord "test" med användarnamn "test" fungerar ändå inte. sökvägarna jag provat med .htaccess ser ut såhär: AuthUserFile /psw/.htpasswd AuthName "Skyddade sidor!" AuthType Basic <Limit GET POST> Require valid-user </Limit> ----------------------------------------- Och i ett annat försök: AuthUserFile C:\passwords AuthName "Skyddade sidor!" AuthType Basic <Limit GET POST> Require valid-user </Limit> ----------------------------------------- Men det fungerar inte ? Varför kan jag inte logga in ? /Mvh Nisse Link to comment Share on other sites More sharing options...
fhe Posted October 26, 2005 Share Posted October 26, 2005 Men det fungerar inte ? Varför kan jag inte logga in ? Förmodligen en av två orsaker: 1. Fel sökväg till AuthUserFile... Testa att skriv på följande form: AuthUserFile C:/passwords (dvs med vanlig slash istället för backslash) 2. Felkrypterade lösenord (om du slår på maximal loggning borde du få en hint om vad som går fel) Eftersom du skriver att du faktiskt försökt använda programmet (htpasswd) vilket är rätt och inte bara webbsidor (vilket i allmänhet är fel om du tänker köra på Windows) så är det förmodligen punkten 1 som är problemet. Link to comment Share on other sites More sharing options...
Niss3 Posted October 26, 2005 Author Share Posted October 26, 2005 Ska testa med \ istället för / , men det står i instruktionerna att jag ska använda /. I alla fall, hur gör jag det här med "maximal loggning" ? detta är loggen iaf : [Wed Oct 26 15:02:22 2005] [error] [client jag] (2)No such file or directory: Could not open password file: c:/program/apache group/apache/psw/.htpasswd [Wed Oct 26 15:02:22 2005] [error] [client jag user test not found: /password2/password.htm Jag har provat att lägga passwordfilen i sökvägen som anges här. Men det fungerade inte. [Wed Oct 26 18:13:30 2005] [error] [client jag] (13)Permission denied: Could not open password file: c:/passwords [Wed Oct 26 18:13:30 2005] [error] [client jag] user test not found: /ao [inlägget ändrat 2005-10-26 18:25:03 av RR-Simon] Link to comment Share on other sites More sharing options...
fhe Posted October 26, 2005 Share Posted October 26, 2005 men det står i instruktionerna att jag ska använda /. Ja det ska du, det var därför jag föreslog det. I exemplet du klistrade in gör du emellertid inte det, där står det: AuthUserFile C:\passwords Vilket alltså är en slash åt fel håll. I alla fall, hur gör jag det här med "maximal loggning" ? Du byter värde på LogLevel i config-filen. http://httpd.apache.org/docs/1.3/mod/core.html#loglevel Link to comment Share on other sites More sharing options...
Niss3 Posted October 26, 2005 Author Share Posted October 26, 2005 kolla senaste edit om det är ngt intressant ´nu har jag gjort något konstigt. kolla vad det står nu : [log] [Wed Oct 26 18:25:47 2005] [error] [client 62.20.189.168] (2)No such file or directory: Could not open password file: /psw/.htpasswd [Wed Oct 26 18:25:47 2005] [error] [client 62.20.189.168] user test not found: /password2/tridown.gif [Wed Oct 26 18:25:47 2005] [error] [client 62.20.189.168] (2)No such file or directory: Could not open password file: /psw/.htpasswd [Wed Oct 26 18:25:47 2005] [error] [client 62.20.189.168] user test not found: /password2/tridown.gif [Wed Oct 26 18:25:50 2005] [error] [client 62.20.189.168] (2)No such file or directory: Could not open password file: /psw/.htpasswd [Wed Oct 26 18:25:50 2005] [error] [client 62.20.189.168] user test not found: /password2/tridown.gif [Wed Oct 26 18:25:50 2005] [error] [client 62.20.189.168] (2)No such file or directory: Could not open password file: /psw/.htpasswd [Wed Oct 26 18:25:50 2005] [error] [client 62.20.189.168] user test not found: /password2/tridown.gif [Wed Oct 26 18:25:50 2005] [error] [client 62.20.189.168] (2)No such file or directory: Could not open password file: /psw/.htpasswd [Wed Oct 26 18:25:50 2005] [error] [client 62.20.189.168] user test not found: /password2/tri.gif [Wed Oct 26 18:25:50 2005] [error] [client 62.20.189.168] (2)No such file or directory: Could not open password file: /psw/.htpasswd [Wed Oct 26 18:25:50 2005] [error] [client 62.20.189.168] user test not found: /password2/tri.gif [Wed Oct 26 18:25:51 2005] [error] [client 62.20.189.168] (2)No such file or directory: Could not open password file: /psw/.htpasswd [Wed Oct 26 18:25:51 2005] [error] [client 62.20.189.168] user test not found: /password2/tridown.gif [Wed Oct 26 18:25:51 2005] [error] [client 62.20.189.168] (2)No such file or directory: Could not open password file: /psw/.htpasswd [Wed Oct 26 18:25:51 2005] [error] [client 62.20.189.168] user test not found: /password2/tri.gif [Wed Oct 26 18:25:51 2005] [error] [client 62.20.189.168] (2)No such file or directory: Could not open password file: /psw/.htpasswd [Wed Oct 26 18:25:51 2005] [error] [client 62.20.189.168] user test not found: /password2/tridown.gif [Wed Oct 26 18:25:52 2005] [error] [client 62.20.189.168] File does not exist: c:/worldoflan/tridown.gif [Wed Oct 26 18:25:52 2005] [error] [client 62.20.189.168] File does not exist: c:/worldoflan/tridown.gif [Wed Oct 26 18:25:52 2005] [error] [client 62.20.189.168] File does not exist: c:/worldoflan/tridown.gif [Wed Oct 26 18:25:52 2005] [error] [client 62.20.189.168] File does not exist: c:/worldoflan/tri.gif [Wed Oct 26 18:25:52 2005] [error] [client 62.20.189.168] File does not exist: c:/worldoflan/tridown.gif [Wed Oct 26 18:25:52 2005] [error] [client 62.20.189.168] File does not exist: c:/worldoflan/tri.gif [Wed Oct 26 18:25:52 2005] [error] [client 62.20.189.168] File does not exist: c:/worldoflan/tridown.gif [Wed Oct 26 18:25:52 2005] [error] [client 62.20.189.168] File does not exist: c:/worldoflan/tri.gif [Wed Oct 26 18:29:42 2005] [error] [client 62.20.189.168] File does not exist: c:/worldoflan/tridown.gif [Wed Oct 26 18:29:43 2005] [error] [client 62.20.189.168] File does not exist: c:/worldoflan/tridown.gif [Wed Oct 26 18:29:43 2005] [error] [client 62.20.189.168] File does not exist: c:/worldoflan/tridown.gif [Wed Oct 26 18:29:43 2005] [error] [client 62.20.189.168] File does not exist: c:/worldoflan/tridown.gif [Wed Oct 26 18:29:43 2005] [error] [client 62.20.189.168] File does not exist: c:/worldoflan/tri.gif [Wed Oct 26 18:29:43 2005] [error] [client 62.20.189.168] File does not exist: c:/worldoflan/tri.gif [Wed Oct 26 18:29:43 2005] [error] [client 62.20.189.168] File does not exist: c:/worldoflan/tridown.gif [Wed Oct 26 18:29:43 2005] [error] [client 62.20.189.168] File does not exist: c:/worldoflan/tri.gif [Wed Oct 26 18:29:48 2005] [error] [client 62.20.189.168] File does not exist: c:/worldoflan/tridown.gif [Wed Oct 26 18:29:48 2005] [error] [client 62.20.189.168] File does not exist: c:/worldoflan/tridown.gif [Wed Oct 26 18:29:48 2005] [error] [client 62.20.189.168] File does not exist: c:/worldoflan/tridown.gif [Wed Oct 26 18:29:48 2005] [error] [client 62.20.189.168] File does not exist: c:/worldoflan/tridown.gif [Wed Oct 26 18:29:48 2005] [error] [client 62.20.189.168] File does not exist: c:/worldoflan/tri.gif [Wed Oct 26 18:29:48 2005] [error] [client 62.20.189.168] File does not exist: c:/worldoflan/tri.gif [Wed Oct 26 18:29:48 2005] [error] [client 62.20.189.168] File does not exist: c:/worldoflan/tridown.gif [Wed Oct 26 18:29:48 2005] [error] [client 62.20.189.168] File does not exist: c:/worldoflan/tri.gif [Wed Oct 26 18:29:51 2005] [error] [client 62.20.189.168] (2)No such file or directory: Could not open password file: /psw/.htpasswd [Wed Oct 26 18:29:51 2005] [error] [client 62.20.189.168] user test not found: /password2/password.htm [Wed Oct 26 18:29:54 2005] [error] [client 62.20.189.168] (2)No such file or directory: Could not open password file: /psw/.htpasswd [Wed Oct 26 18:29:54 2005] [error] [client 62.20.189.168] user test not found: /password2/password.htm [Wed Oct 26 18:29:57 2005] [error] [client 62.20.189.168] File does not exist: c:/worldoflan/tridown.gif [Wed Oct 26 18:29:57 2005] [error] [client 62.20.189.168] File does not exist: c:/worldoflan/tridown.gif [Wed Oct 26 18:29:57 2005] [error] [client 62.20.189.168] File does not exist: c:/worldoflan/tridown.gif [Wed Oct 26 18:29:57 2005] [error] [client 62.20.189.168] File does not exist: c:/worldoflan/tridown.gif [Wed Oct 26 18:29:57 2005] [error] [client 62.20.189.168] File does not exist: c:/worldoflan/tri.gif [Wed Oct 26 18:29:57 2005] [error] [client 62.20.189.168] File does not exist: c:/worldoflan/tri.gif [Wed Oct 26 18:29:57 2005] [error] [client 62.20.189.168] File does not exist: c:/worldoflan/tridown.gif [Wed Oct 26 18:29:57 2005] [error] [client 62.20.189.168] File does not exist: c:/worldoflan/tri.gif [Wed Oct 26 18:29:57 2005] [error] [client 62.20.189.168] (2)No such file or directory: Could not open password file: /psw/.htpasswd [Wed Oct 26 18:29:57 2005] [error] [client 62.20.189.168] user test not found: /password2/password.htm [Wed Oct 26 18:29:59 2005] [error] [client 62.20.189.168] (2)No such file or directory: Could not open password file: /psw/.htpasswd [Wed Oct 26 18:29:59 2005] [error] [client 62.20.189.168] user test not found: /password2/password.htm [Wed Oct 26 18:30:00 2005] [error] [client 62.20.189.168] (2)No such file or directory: Could not open password file: /psw/.htpasswd [Wed Oct 26 18:30:00 2005] [error] [client 62.20.189.168] user test not found: /password2/password.htm [Wed Oct 26 18:30:01 2005] [error] [client 62.20.189.168] (2)No such file or directory: Could not open password file: /psw/.htpasswd [Wed Oct 26 18:30:01 2005] [error] [client 62.20.189.168] user test not found: /password2/password.htm [Wed Oct 26 18:30:03 2005] [error] [client 62.20.189.168] File does not exist: c:/worldoflan/tridown.gif [Wed Oct 26 18:30:03 2005] [error] [client 62.20.189.168] File does not exist: c:/worldoflan/tridown.gif [Wed Oct 26 18:30:03 2005] [error] [client 62.20.189.168] File does not exist: c:/worldoflan/tridown.gif [Wed Oct 26 18:30:03 2005] [error] [client 62.20.189.168] File does not exist: c:/worldoflan/tridown.gif [Wed Oct 26 18:30:03 2005] [error] [client 62.20.189.168] File does not exist: c:/worldoflan/tri.gif [Wed Oct 26 18:30:03 2005] [error] [client 62.20.189.168] File does not exist: c:/worldoflan/tri.gif [Wed Oct 26 18:30:03 2005] [error] [client 62.20.189.168] File does not exist: c:/worldoflan/tridown.gif [Wed Oct 26 18:30:03 2005] [error] [client 62.20.189.168] File does not exist: c:/worldoflan/tri.gif [/log] LOG-taggar inlagt av moderator. [inlägget ändrat 2007-05-27 09:51:09 av Maratonmannen] Link to comment Share on other sites More sharing options...
fhe Posted October 26, 2005 Share Posted October 26, 2005 kolla senaste edit om det är ngt intressant Det blir lättare om du skriver nya inlägg när du tillför information. [Wed Oct 26 15:02:22 2005] [error] [client jag] (2)No such file or directory: Could not open password file: c:/program/apache group/apache/psw/.htpasswd Är det inte ganska uppenbart att den inte hittar password-filen där? samt [Wed Oct 26 18:13:30 2005] [error] [client jag] (13)Permission denied: Could not open password file: c:/passwords Att webbservern inte har rättigheter att läsa den där filen? [Wed Oct 26 18:25:52 2005] [error] [client 62.20.189.168] File does not exist: c:/worldoflan/tri.gif Varför den inte hittar de där filerna får du nog klura ut själv. Link to comment Share on other sites More sharing options...
Niss3 Posted October 26, 2005 Author Share Posted October 26, 2005 Ok, jag postar nytt ;-) Jag löste problemet med att den inte hittar såhär: skriver nu : psw/.htpasswd då letar en i apache mappen. Jag vet inte hur jag ska ge tillgång till andra ställen på datorn. och tri.gif var ett fel i ett script jag använder. Tack för all hjälp, gav dig en välförtjänt poäng Link to comment Share on other sites More sharing options...
Monshi Posted October 26, 2005 Share Posted October 26, 2005 Tråden flyttad till forumet Webbserver /T Moderator för Webb - allmänt Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.