[TriLUG] apache password authentication

Douglas Kojetin djkojeti at unity.ncsu.edu
Sat Jan 31 14:48:19 EST 2004


Hi All-

I'm trying (first time) to create a password login to an area on my 
site and/or allow a specific IP address.  I cannot seem to get past a 
'revolving' password prompt.  I can change the 'allow from 
ipaddress.com' to my IP or not, which will allow or disallow me access, 
but the password prompt is not working properly.  Below is some info 
... any advice?

# create htpasswd/user
htpasswd -c /var/www/.htpasswd test
 > test
 > test

# .htaccess, found @ /var/www/html/intranet/.htaccess
AuthType Basic
AuthGroupFile /dev/null
AuthName "Fun Authorization Required"
AuthUserFile /var/www/.htpasswd
require valid-user
Order allow,deny
allow from ipaddress.com
satisfy any

# httpd.conf
<Directory /var/www/html/intranet>
         Options Indexes Includes FollowSymLinks
         AllowOverride All
         Allow from all
         Order allow,deny
</Directory>

Thanks,
Doug




More information about the TriLUG mailing list