Fehler 401 und ErrorDocument

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • Fehler 401 und ErrorDocument

    Ich habe in der htaccess

    ErrorDocument 401 http://www.seite.de/401.php
    ErrorDocument 402 http://www.seite.de/402.php
    ErrorDocument 403 http://www.seite.de/403.php
    ErrorDocument 404 http://www.seite.de/404.php
    ErrorDocument 500 http://www.seite.de/500.php
    ErrorDocument 501 http://www.seite.de/501.php

    Leider wird nach abbruch oder dreimaliger Falscheingabe nicht das Dokument 401.php ausgegeben sondern diese Information:

    Authorization Required
    This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.
    Hat wer eine Ahnung woran das liegen könnte???

  • #2
    Überraschend, aber wahr: Im Manual gucken kann manchmal hilfreich sein

    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.
    Zuletzt geändert von pekka; 24.10.2004, 02:59.

    Kommentar


    • #3
      Gut zu wissen...

      ErrorDocument 401 /error/401.php

      Jetzt kann ich endlich schlafen gehen

      Vielen Dank für die schnelle Hilfe!

      Kommentar

      Lädt...
      X