[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] using htaccess to limit access to an IP
- Subject: [cobalt-users] using htaccess to limit access to an IP
- From: Lee Joramo <leejor@xxxxxx>
- Date: Thu Feb 24 13:57:08 2000
I am attempting to setup htaccess to allow access to everyone from a
specific IP address, otherwise prompt for a users password.
Given:
two users:
joeuser jodyuser
IP address to allow all users to access:
987.987.987.987
Realm of authentication:
myprotectedpage
htpassword path:
/home/sites/www.FAKESITE.com/.htpasswd
Here is the .htaccess file I have attempted to use:
# Access file
require user joeuser jodyuser
order deny, allow
deny from all
allow from 987.987.987.987
satisfy any
AuthName myprotectedpage
AuthPAM_Enabled off
Authtype Basic
AuthUserFile /home/sites/www.FAKESITE.com/.htpasswd
This results in the follow web page error message:
Internal Server Error
The server encountered an internal error or misconfiguration
and was unable to complete your request.
Now I have tried many variations of the .htaccess file, but the one
above is the one that I feel is the closest to what I need. All
either allow versions either provided the same error message or
allowed anyone to access the page.
I had a very similar script that worked on a previous server which
ran under SunOS with the ROXEN webserver.
Several other questions:
On previous systems, I allows used <Limit></Limit> tags around the
restrictions and this came after the "Auth" settings. The
documentation I found at www.cobalt.com and this mailing list archive
all used the format as found in the above .htaccess file.
What exactly does AuthPAM_Enabled do? I am guessing that it uses the
systems username and password to allow access to a web page. If so
this seems like a dangerous thing to allow.
Thanks
--
Lee A. Joramo ljoramo@xxxxxxxxxxx
The Nickel Want Ads www.nickads.com
Internet Manager 970-242-5555
--
Onward and Upward!
Lee A. Joramo }}-----> Cowboy on the Electronic Frontier
lee@xxxxxxxxxx
Alamar Ranch - Palisade - Colorado
ThreeRivers|Eagle|UCD|D&D|TNC|DX|Mac|221B|Cannondale|Deutsch