probleem oplossen met .htpasswd bestand

Status
Niet open voor verdere reacties.

stevebravo

Gebruiker
Lid geworden
16 jan 2010
Berichten
156
Ik probeer een htpasswd te maken met de volgende gegevens, maar deze schijnt niet te werken.. kan iemand me opweg helpen?

De root is waar ik de map www zie staan en waar dit bestand zit.

.htaccess
AuthName "test"
AuthType Basic
AuthUserFile /www/.htpasswd
Require valid-user

htpasswd =
naam:wachtwoord
 
Laatst bewerkt:
Nu krijg ik een 500 internal server error:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@***.nl and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
 
ahhh het is gelukt..

voor de mensen die ook succes willen is dit een handig tooltje..


<?php
$dir = dirname(__FILE__);
echo "<p>Full path to this dir: " . $dir . "</p>";
echo "<p>Full path to a .htpasswd file in this dir: " . $dir . "/.htpasswd" . "</p>";
?>
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan