1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

(Solved) protecting pages/dirs with .htaccess

Discussion in 'Web & Email' started by Shapeshifter, Sep 28, 2003.

Thread Status:
Not open for further replies.
  1. Shapeshifter

    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.
     
  2. Squashman

    Squashman Trusted Advisor

    Joined:
    Apr 4, 2003
    Messages:
    19,783
    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>
     
  3. Shapeshifter

    Shapeshifter Thread Starter

    Joined:
    Dec 24, 2002
    Messages:
    17
    hehe! solved! I asked my sys admin to change some directives for the httpd.conf file that allowed me to do it.

    The info was found on this page
     
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 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/168010

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice