473,387 Members | 1,520 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

.htpasswd and .htaccess - security-path

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?
Jul 17 '05 #1
2 2926
"Lothar Bayer" <lo**********@arcor.de> writes:

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?

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/
Jul 17 '05 #2
> Check the Apache's error log files. They will tell you why your login
is failing.


[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
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Marko Lahtinen | last post by:
Hello! A part of my website is protected with a .htaccess file. Can I somehow bypass the username/password dialog ?? Can I somehow "hardcode" the authentication name and password in my php-file...
2
by: Otto | last post by:
Hello to all, I have protected a directory with the help of .htaccess & htpasswd. I also read that I can get the login value in a php variable. Like this: $user = $_SERVER;
3
by: starlightjen | last post by:
Hello, I'm trying to use php to update my htpasswd file. I have my permissions on .htpasswd set to 777, so it should be wide open. From the command line (when logged into the server as...
0
by: Ludwig77 | last post by:
I'm trying to password protect a directory on my web site. I'm using the password encryption generator located at http://resma.net/tutorials/htaccess.php# I can't seem to get my login to work. I...
1
by: John MacLeod | last post by:
I'm having a problem using the .htaccess file to point my local installation of php5 (located at www.mydomain.com/horde/cgi-bin/php5.cgi). As per the instructions I was following I added the...
0
by: Jack Hambabo | last post by:
Hi, I'm searching for a php script that can find out whether the current user (I know _SERVER will give me the name for non-cgi php) has the right to view a specific file. My dream is that I...
2
by: Josselin | last post by:
If I don't want to implement a login page, but only .htaccess security control from Apache server... is there any way to get the id/pwd data in a php script to redirect the identified guy into his...
5
by: Kurda Yon | last post by:
Hi, in the home directory I put .htaccess with "register_globals 0". Obviously, all php-files from this directory will not take variables from the address line. But, as far as I understand, the...
8
by: Geoff Cox | last post by:
Hello, Using .htaccess and a linux server is it possible to give group access to a person so that he/she can access files in several different folders? If yes, how is this done?! Cheers
8
by: Geoff Cox | last post by:
Hello Can anyone recommend software which I can run from my own PC which will create the encrypted password for the htpasswd file? I have come across Htpasswd Generator which does the job but...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.