(Solved) protecting pages/dirs with .htaccess

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Shapeshifter

Thread Starter
Joined
Dec 24, 2002
Messages
17
I'm accessing a server that uses Apache/2.0.40 and Red Hat Linux (not sure which version). Im trying to protect the contents of a folder using .htaccess and .htpasswd files.

But i can access everything lol! :p so odviously its not working.

Here are the contents of each file.

.htaccess

AuthName "Protected Area"
AuthType Basic
AuthUserFile /home/mike/melbteens/securearea/.htpasswd
require valid-user

------------------------

.htpasswd

user1:VV58V/$4gu/
user2:5423$1T$Yt71Y.PF$

------------------------

^-^ those weren't the real passwords of course.. any help is MUCH MUCH appreciated.
 

Squashman

Trusted Advisor
Joined
Apr 4, 2003
Messages
19,786
I always put the AuthUserFile first. This is what mine looks like.

AuthUserFILE /www/ag/g/gbsps/secure/.htpsswd
AuthGroupFILE /dev/null
AuthNAME "GBSPS Members Area"
AuthTYPE Basic
require valid-user
<limit GET POST PUT>
order allow,deny
allow from all
</limit>
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Members online

Top