Apache Server configuration support - Re: HTACCESS

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > January 2004 > Re: HTACCESS





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: HTACCESS
da Silva, Charlie

2004-01-19, 7:12 am


"Robi" <me@privacy.net> schreef in bericht
news:bnbkgi$v76b1$1@ID-211961.news.uni-berlin.de...
quote:

> Charlie da Silva wrote:
>
> [some snippage occurred]
>
>
> 1. are you sure $bartjel is in the file passwd you're accessing?



Yes, pretty much, this is in the passwd file, opened with notepad:
---> $bartje1:$apr1$e13.....$206hM959ucFBgRaRb28RO/
<& this is the pad: "C:\webserver\Apache2\passwd" is stored.>
quote:

> C:\webserver\Apache2\passwd>bin\htpasswd -cb passwd\passwd $bartje1


$klootzak
quote:

> ^^^^^^ ^^^^ ^^^^^^
> somehow the "path" doesn't look right.



In my world, it is a new world ;), this seems the right thing to do, aint
it?
quote:

>
> I kinda think it should be either
> C:\webserver\Apache2\passwd>..\bin\htpasswd -cb passwd $bartje1 $klootzak
> or
> C:\webserver\Apache2>bin\htpasswd -cb passwd\passwd $bartje1 $klootzak
> C:\webserver\Apache2>bin\htpasswd -b passwd\passwd robi lameOS
>
> pointers to the above
> 1. the bin directory is in the apache2 folder, so if you're sitting in the
> folder Apache2\passwd, you need to back one up and into the bin
> (..\bin\htpasswd) and the file passwd is created in the sitting dir.
> 2. or sit in the Apache2 directory and organize it all from there;
> call bin\htpasswd and create passwd\passwd.
> 3. without -c, htpasswd uses the existing user file; no create.
>
>
> Anyway, can you post the part of your httpd.conf with your additions?
> Are you referencing the correct user file (passwd) in AuthUserFile?
>


Here is the httpd.conf add.:

<Directory "C:/webserver/www/securedpage/Family">
AuthType Basic
AuthName "Private Family area: requires login"
AuthUserFile "C:\webserver\Apache2\passwd"
Require user mom dad bro sis wife son daugther aunt uncle
# or just
# Require valid-user
</Directory>

This shoud be right! Also when i go to
http://127.0.0.1/securedpage/index.html I am getting the secured page
pop-up...

quote:

> Somehow I think you might be referencing the wrong file.
> When I started my secured directory I had the opposite effect; I could


enter
quote:

> anything and it would accept it, even if it wasn't in the passwd file.
>
> I was referencing it as an alias, and that blew it off (somehow).
>
> It could also be that you have a restriction on that path...



It seems you did a lot of research on this subject, are you using this for
your profession, or are you, jus't like me, doing it for fun?

Greetz,
Bart


Robi

2004-01-19, 7:12 am

Charlie da Silva wrote:
quote:

> Robi schreef:
>
> Yes, pretty much, this is in the passwd file, opened with notepad:
> ---> $bartje1:$apr1$e13.....$206hM959ucFBgRaRb28RO/
> <& this is the pad: "C:\webserver\Apache2\passwd" is stored.>


[...]
quote:

> Here is the httpd.conf add.:
>
> <Directory "C:/webserver/www/securedpage/Family">
> AuthType Basic
> AuthName "Private Family area: requires login"
> AuthUserFile "C:\webserver\Apache2\passwd"
> Require user mom dad bro sis wife son daugther aunt uncle
> # or just
> # Require valid-user
> </Directory>
>
> This shoud be right! Also when i go to
> http://127.0.0.1/securedpage/index.html I am getting the secured page
> pop-up...



yep, but you are only allowing the following users:
"mom dad bro sis wife son daugther aunt uncle"

change the above to:

<Directory "C:/webserver/www/securedpage/Family">
AuthType Basic
AuthName "Private Family area: requires login"
AuthUserFile "C:\webserver\Apache2\passwd"
Require valid-user
</Directory>

(removing "Require user mom..." and uncommenting "#Require valid-user")

that should do it
(or by adding "Require user $bartjel" - without the quotes)
quote:

> It seems you did a lot of research on this subject, are you using this for
> your profession, or are you, jus't like me, doing it for fun?



thanks, it's more like a hobby right now ;o)

--
Robi
da Silva, Charlie

2004-01-19, 7:12 am

PFFFFF, still I am gettin' ZERO!
I think it is time to get some hands on help!
I'll keep you informed! THANKS anyway!


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com