[EMAIL PROTECTED] mod_rewrite and network addresses?

2005-07-25 Thread Dick Davies
Hi all, I'm trying to do what should be simple, can anyone suggest a better approach? I have content I want to serve up via http to intranet users, but have external IPs authenticate over SSL (mod_auth_ldap). the internal nets are (say): 10.9.0.0/16 10.0.112.0/20 10.19.64.0/22 I solved this

Re: [EMAIL PROTECTED] mod_rewrite and network addresses?

2005-07-25 Thread Joshua Slive
On 7/25/05, Dick Davies [EMAIL PROTECTED] wrote: I have content I want to serve up via http to intranet users, but have external IPs authenticate over SSL (mod_auth_ldap). # for main network users RewriteCond %{REMOTE_ADDR} !^10\.9\..* # XXX these are hosed # or our other two

Re: [EMAIL PROTECTED] mod_rewrite and network addresses?

2005-07-25 Thread Dick Davies
* Joshua Slive [EMAIL PROTECTED] [0737 18:37]: On 7/25/05, Dick Davies [EMAIL PROTECTED] wrote: but since we're just matching a string (REMOTE_ADDR) with no network information it isn't going to cut it for the last two sites. Am I really going to have to have one line for each

Re: [EMAIL PROTECTED] mod_rewrite and network addresses?

2005-07-25 Thread Joshua Slive
On 7/25/05, Dick Davies [EMAIL PROTECTED] wrote: RewriteCond %{REMOTE_ADDR} !^10\.0\.11[2-9]\.* RewriteCond %{REMOTE_ADDR} !^10\.0\.12[0-7]\.* which I believe should get the intention of your first line. (Note also the correct regex escaping of the '.'.) Thanks Joshua, just needed some