473,788 Members | 2,733 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.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\famil ienzentrum.com\
and is named http://fzt.local/

I created a new directory as
D:\Daten\htdocs \effektiv\famil ienzentrum.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
ok.

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

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$TVX0o gEG$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=takatu ka71382, the security-window
does not accept those values.

What is wrong here?
Who may help me please?
Jul 17 '05 #1
2 2970
"Lothar Bayer" <lo**********@a rcor.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=takatu ka71382, 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_UNAUTHORIZ ED
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 SymLinksIfOwner Match 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
13191
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 or can I use for example a html form/mysql authentication and at the same time set some variables or headers (or something) so the user can access the ..htaccess part ? A stupid example: if user presses a button, user gets transferred to the...
2
2655
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
5109
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 "nobody", my server's web user) I can get the htpasswd.exe to run without a problem, but when passed through my php exec() function the .htpasswd file does not change. I'm not getting any errors, but I'm not getting any action either.
0
1876
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 get a authentication prompt screen when trying to access the directory, but it won't authenticate. I've noticed that every time I enter the same password into the encryption tool, it generates a different password. How can this be?
1
1640
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 following to the .htaccess file (located at www.mydomain.com/horde)... <start quote> #PHP 5.0.5 FINAL without security wrap Action application/x-httpd-phpx /cgi-bin/php5.cgi AddType application/x-httpd-phpx php php3 phtml php4 php5 <end quote>
0
2003
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 just need a short php script that just asks the webserver what the rights are. That seems a reasonable wish to me. If this is however not possible than I'd like a script that can
2
2084
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 own area ? thanks for your tips Joss
5
2460
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 .htaccess files influences on all files in the subdirectories so that they also cannot take the variables from the address line. Should it be like that?
8
3467
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
1784
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 wondered if there is any software which costs less (£35).... Cheers
0
9656
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9498
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10370
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10177
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10113
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7519
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5402
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3677
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2896
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.