making a .htpasswd doesn't work
when i try to make .htpasswd on suse 9.1 pro it just doen't work. i typed htpasswd -c username .htpasswd, but i got the
message: bash: htpasswd: command not found. even when i'm in the directory in which htpasswd is (/usr/local/apache/bin) it's still a no go.
i then tried the command pico and then fill in a name and password, then saved it as .htpasswd. still nothing.
does anyone know what to do?
try ./htpasswd if youre in the directory. If you dont specifiy the full path, only dirs in the $PATH will be checked, not even the current dir. ./command is a full path to a command that just happens to be in the current directory.
ah, great. it worked.
now, i made a .htaccess file, but when i browse to the secured directory, i don't get a loginscreen. just the directory with it's contents.
here's an example:
AuthName .Welkom op de beveiligde directory!.
<LIMIT GET POST>
don't know where i made a mistake. or do i have to configure httpd.conf?
(using apache 1.3.33)
Make sure you have htaccess related stuff enabled in the conf, and that the directory in question is subject to the 'AllowOverride All' or similar setting so that the htaccess is actually allowed. That should do the trick. Your .htaccess is alomost identical to the ones I use except ive also set 'AuthGroupFile /dev/null'
thx, but still didn't work.
when i change this section:
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
this message appears in the browser:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
if i put AllowOverride All to None i don't get the message.
i'm still missing something i guess :Pengy:
check your error_log from that time (/var/log/apache/error_log or some similar path) to see what actually went wrong. The error_log usually gives a pretty good idea on infernal errors.. (:
yes, that was the final trick. the AuthName wasn't between " "
thx very much for your help!
|All times are GMT -5. The time now is 01:50 PM.|