.htpasswd and .htaccess - security-path

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View


I want zu install a security-path with .htaccess and .htpasswd on my privat
local machine (for test-reason)
I succeeded with a .htaccess and Error 404-adressing a special Error-page
with menu.
SSI and PHP are accessible..
My Apache is installed in path C:\Apache2\
My homepage is in D:\Daten\htdocs\effektiv\familienzentrum.com\
and is named http://fzt.local /

I created a new directory as
D:\Daten\htdocs\effektiv\familienzentrum.com\geheim\ where I want to put the
..htpasswd and .htaccess
This path shall be the security-path.
I think, that I should not put password-file there, but for testreason it is

with a utility I named (and with htpasswd.exe the same) this path as
Loginname (User) "geheim"
password  "takatuka71382"

so I got 2 files
AuthUserFile D:/Daten/htdocs/effektiv/familienzentrum.com/geheim/.htpasswd
AuthName "geschuetzt"
AuthType Basic
require valid-user


I put both files in path

when adressing http://fzt.local/geheim/index.php - I correct get the window
for input of user and Password.
But when I give user=geheim, and password=takatuka71382, the security-window
does not accept those values.

What is wrong here?
Who may help me please?

Re: .htpasswd and .htaccess - security-path

Quoted text here. Click to load it

Check the Apache's error log files.  They will tell you why your login
is failing.
Raj Shekhar                          Y!   : Operations Engineer
MySQL DBA, programmer and  slacker   Y!IM : lunatech3007
home : http://rajshekhar.net          blog : http://rajshekhar.net/blog /

Re: .htpasswd and .htaccess - security-path

Quoted text here. Click to load it

[Sat Mar 19 22:36:49 2005] [error] [client] user geheim:
authentication failure for "/geheim/": Password Mismatch - geheim [19/Mar/2005:22:36:49 +0100] "GET /geheim/ HTTP/1.1" 401

that is in errorfile
ErrorDocument 401 /error/HTTP_UNAUTHORIZED
477 ???
username is geheim
password is takatuka71382

i constructed many times new pw and user.
is it an Apache problem?

<Directory "D:/Daten/htdocs/effectiv/familienzentrum.com">
    AllowOverride FileInfo AuthConfig Limit
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    AllowOverride All
        Order allow,deny
        Allow from all
        Order deny,allow
        Deny from all

   DocumentRoot "D:/Daten/htdocs/effektiv/familienzentrum.com"
   ServerName fzt.local
   ErrorLog logs/familienzentrum.com_log
   CustomLog logs/familienzentrum.com_log common
   AccessFileName .htaccess

any Idea?

thanks for now.

Site Timeline