Habe auf meiner Seite ein Passwort mit .htaccess und .htpasswd eingerichtet.
.htaccess:
AuthName "Andreas Schachinger"
AuthType Basic
AuthUserFile /.htpasswd
require valid-user
ErrorDocument 401 bplaced.net
.htpasswd:
user:Tzw8ylcaTqFas
(passwort ist “123”)
Die Passwortabfrage funktioniert hat anfangs funktionierd, jetzt jedoch nicht mehr. Komme sofort zur error500 Seite von bplaced.
Kann mir wer sagen was ich hier falschgemacht habe?
Scram
20. April 2008 um 16:08
2
aschachinger:
ErrorDocument 401 bplaced.net [/quote][quote]Note that when you specify an ErrorDocument that points to a remote URL (ie. anything with a method such as http in front of it), Apache will send a redirect to the client to tell it where to find the document, even if the document ends up being on the same server. This has several implications, the most important being that the client will not receive the original error status code, but instead will receive a redirect status code. This in turn can confuse web robots and other clients which try to determine if a URL is valid using the status code. In addition, if you use a remote URL in an ErrorDocument 401 , the client will not know to prompt the user for a password since it will not receive the 401 status code. Therefore, if you use an ErrorDocument 401 directive then it must refer to a local document.
Ich bin mir nicht einmal sicher, ob du 401 hier festlegen kannst.
aschachinger:
AuthUserFile /.htpasswd
Das wird auch nicht klappen.
Und eins noch: Falsches Forum.
comjag
20. April 2008 um 16:12
3
htaccess generator
filmanleitungen.bplaced.net
401 kannst du nicht festlegen
Müsste das mit dem Passwort gehen? Mache heute das erste Mal ein Passwort und kenne mich da noch nicht sehr gut aus…
Ansontsten müsste man das wahrscheindlich mit Javasript machen?
…welches forum sollte man sontst nehmen??
Scram
20. April 2008 um 16:20
5
Die zwei Direktiven, die falsch sind, habe ich bereits gesagt. Und mit JavaScript kann man nichts schützen.
sry…bin vorher irgendwie nicht ganz mitgekommen…
Also mit dem .htaccess generator den mit comjag geschickt hat hat es super funktionierd.
Danke für eure Hilfe!