Hackerboard Wiki HaboBlog
Hackerboard bei Facebook Hackerboard bei Google+ Hackerboard bei Twitter

[HaBo]

 
Windows Dieses Forum dient den Diskussionen rund um alle Microsoft-Betriebssysteme.

htaccess Zugriffsproblem...

Diskussion: htaccess Zugriffsproblem... im Forum Windows, in der Kategorie Operating Systems; Anzeige Hallo zusammen wiedermal habe ich ein kleines Problem.... Ich habe zuhause Apache installiert auf win2k... danach wollte ich was ...

Antwort
Alt 13.04.04, 21:39   #1 (permalink)
 
Registriert seit: 26.12.03
keymaker Leistung: Facit NTK
Likes: 0
Exclamation htaccess Zugriffsproblem...

Anzeige

Hallo zusammen

wiedermal habe ich ein kleines Problem.... Ich habe zuhause Apache installiert auf win2k... danach wollte ich was mit htaccess machen. Meine Konfigurationsfiles sehen so aus:

httpd.conf (von Apache):
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
#
AllowOverride AuthConfig

.htaccess:
# .htaccess-Datei fuer Web-Verzeichnis /service
AuthType Basic
AuthName "Private Area"
AuthUserFile htusers
require user keymaker

htusers (ohne punkt!)
# Benutzerdatei fuer Web-Projekt
keymaker:test

Wenn ich auf die Page gehe (noch nicht online) komme ich zwar zum login, jedoch seien die Zugangsdaten falsch.... das .htaccess file ist im gleichen verzeichnis wie htusers, dann muss doch eigentlich kein Pfad für das htusers angegeben werden, oder?
hoffe Ihr könnt mir helfen.....

keymaker ist offline   Mit Zitat antworten
Alt 13.04.04, 22:10   #2 (permalink)
Ray
 
Registriert seit: 06.08.02
Ray Leistung: Facit NTK
Likes: 0
Standard

Zitat:
htusers (ohne punkt!)
# Benutzerdatei fuer Web-Projekt
keymaker:test
Du solltest das Passwort vorher mit crypt() in die für htaccess benötigte Form bringen. ^^
Ray ist offline   Mit Zitat antworten
   
HaBOT
 
- Anzeige -

Werbung ist gerade online    
Alt 13.04.04, 22:13   #3 (permalink)
Themenstarter
 
Registriert seit: 26.12.03
keymaker Leistung: Facit NTK
Likes: 0
Standard

hab ich schon versucht - unter win2k hat das nicht funktioiniert....
Habe es zum laufen gebracht... : der Fehler war der, dass ich im .htaccess nicht den ganzen Pfad angegeben hatte für die htuser Datei...
.htaccess:
# .htaccess-Datei fuer Web-Verzeichnis /service
AuthType Basic
AuthName "Private Area"
AuthUserFile "c:/apache/htdocs/names/htusers"
require user keymaker
keymaker ist offline   Mit Zitat antworten
Alt 13.04.04, 22:23   #4 (permalink)
Ray
 
Registriert seit: 06.08.02
Ray Leistung: Facit NTK
Likes: 0
Standard

Du solltest das Passwort trotzdem in Hash-Form bringen. Einfach sicherheitshalber. Dafür gibt's doch das mitgelieferte Programm htpasswd.
Ray ist offline   Mit Zitat antworten
Alt 13.04.04, 22:47   #5 (permalink)
Themenstarter
 
Registriert seit: 26.12.03
keymaker Leistung: Facit NTK
Likes: 0
Standard

klar das stimmt schon...!
Du sprichst das htpasswd an, oder?
das funktioniert leider nicht ganz... da: meine Pfadangabe kann nicht aufgelöst werden da es einen Leerschlag darin hat... %20 funktioniert nicht....
habe versucht:
htpasswd -c c:\programme\apache group\apache\htdocs\names\htusers keymaker

hat jemand Erfahrung damit??
keymaker ist offline   Mit Zitat antworten
Alt 14.04.04, 08:54   #6 (permalink)
 
Registriert seit: 02.03.04
pHearX Leistung: Facit NTK
Likes: 0
Standard

Naja, wenn es nur daran liegt, dann schreib apache group doch einfach zusammen :-)
pHearX ist offline   Mit Zitat antworten
Alt 14.04.04, 13:20   #7 (permalink)
Ray
 
Registriert seit: 06.08.02
Ray Leistung: Facit NTK
Likes: 0
Standard

Sollte mit

htpasswd -c "c:\programme\apache group\apache\htdocs\names\htusers" keymaker

gehen.
Ray ist offline   Mit Zitat antworten
Alt 14.04.04, 20:06   #8 (permalink)
Themenstarter
 
Registriert seit: 26.12.03
keymaker Leistung: Facit NTK
Likes: 0
Standard

hat geklappt...

Besten Dank an alle
keymaker ist offline   Mit Zitat antworten
Antwort
   
- Anzeige -

Werbung ist gerade online    

[HaBo] » Operating Systems » Windows » htaccess Zugriffsproblem...
Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks sind aus
Pingbacks sind aus
Refbacks sind aus


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
htaccess Videostream pinky Network · LAN, WAN, Firewalls 6 25.08.06 14:28
einbinden einer vfat via shfs - zugriffsproblem non Linux/UNIX 1 24.05.04 23:07
.htaccess spy (Web-) Design und webbasierte Sprachen 5 06.03.04 17:56
.htaccess steffen (Web-) Design und webbasierte Sprachen 2 13.04.03 22:56
Help: HTACCESS ?!?! Indi (Web-) Design und webbasierte Sprachen 6 19.10.01 15:19


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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61