access.conf/Apache

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Nick Estes
Date:  
Subject: access.conf/Apache
You might try adding the directive "order deny, allow" to your config
below to make apache deny addresses before it allows them.

    --Nick


On Mon, 18 Jun 2001, wrote:

> 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
> ________________________________________________
> See http://PLUG.phoenix.az.us/navigator-mail.shtml if your mail doesn't post to the list quickly and you use Netscape to write mail.
>
> PLUG-discuss mailing list -
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
>