Forum Moderators: phranque

Message Too Old, No Replies

prompt for user/pass when not on local network?

         

longneck

2:22 am on Jan 10, 2006 (gmt 0)



can someone show me some example lines for an apache configuration file that will allow anonymous connections from 192.168.1.0/24, but prompt for a username and password from any other network? i know how to deny access from other networks, and how to prompt for a password, but i don't know how to combine the two to allow for an exception.

thanks!

jdMorgan

4:20 pm on Jan 11, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



longneck,

Welcome to WebmasterWorld!

See the "Satisfy" directive in Apache core. This allows you to "satisfy" a login, IP, or hostname restriction if *any* or *all* requirements are met - as desired.

Jim