Trying to get htaccess to work...or...man, what am I doing w…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Anthony Hologounis
Date:  
Subject: Trying to get htaccess to work...or...man, what am I doing wrong!
That was it!

the missing piece was this in the htpd.conf file

<Location /test/>
AuthName "restricted stuff"
AuthType Basic
AuthUserFile /var/www/test/.test
require valid-user
</Location>



Thanks !

Anthony



Phil Mattison wrote:

>You're on the right track. Try this:
>
>Create a Location within your vhost definition in httpd.conf:
>
><Location /test/>
>AuthName "restricted stuff"
>AuthType Basic
>AuthUserFile /var/www/test/.test
>require valid-user
></Location>
>
>Create the password file:
>/usr/bin/htpasswd -c /var/www/test/.test <user-name>
>
>Hint: don't put the auth file in your DocumentRoot path.
>--
>Phil Mattison
>Ohmikron Corp.
>480-722-9595
>602-820-9452 Mobile
>
>-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>PLUG-discuss mailing list -
>To subscribe, unsubscribe, or to change you mail settings:
>http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
>
>