Connecting Tech Pros Worldwide Forums | Help | Site Map

.htpasswd and .htaccess - security-path

Lothar Bayer
Guest
 
Posts: n/a
#1: Jul 17 '05
Hallo,

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\gehei m\ 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
ok.

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

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

..htpasswd
geheim:$1$TVX0ogEG$5mrLzYr/bceOinejlH8v.1

I put both files in path
D:/Daten/htdocs/effektiv/familienzentrum.com/geheim/

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?



Raj Shekhar
Guest
 
Posts: n/a
#2: Jul 17 '05

re: .htpasswd and .htaccess - security-path


"Lothar Bayer" <lothar-bayer@arcor.de> writes:[color=blue]
>
> 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?[/color]


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/
Lothar Bayer
Guest
 
Posts: n/a
#3: Jul 17 '05

re: .htpasswd and .htaccess - security-path


> Check the Apache's error log files. They will tell you why your login[color=blue]
> is failing.[/color]

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

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
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>


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

any Idea?

thanks for now.
Lothar


Closed Thread