access.conf/Apache

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: plug-discuss@lists.PLUG.phoenix.az.us
Date:  
Subject: access.conf/Apache
I know I have done something like this before, but
can't remember how:

I would like to set up all access to my web server
from a given ip to prompt the user for a passwd.
For instance, all ip's in the range 192.168.2.0/24
should be allowed access EXCEPT one ip 192.168.2.222.

Could anyone throw me a bone? I have searched thru
apache's docs & faqs, but have not turned up
anything. I suppose the part that has me hung up
is that the ip I want to match is in the same
range that I want to allow.

I have tried something like

allow from 192.168.2.0/24
deny from 192.168.2.222
AuthType Basic
AuthUserFile /path_to_htpasswd_file
require user user_from_222
satisfy any



v/r
Mike