httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sternbergh, Cornell" <rsternb...@state.pa.us>
Subject RE: [users@httpd] Location matching
Date Mon, 03 May 2004 13:45:44 GMT
Uh...

Not familiar with the syntax, is the "|" an OR?

If it is, then ^aa|^bbb|^cc is always true.  If it's bbb then it's not aa, condition ^aa is
true.  If its aa, then it's not bbb, condition ^bbb is true.  Etc.

The condition (A OR B OR C) is negated as either
NOT (A OR B OR C) or
(NOT A AND NOT B AND NOT C)

There's a rule in Logic, which bears someone's name, which I forget, which yields
  Negate the operands and change operators AND to OR and OR to AND

-----Original Message-----
From: Eimantas Vaiciunas [mailto:eimantas@lietuvoje.lt] 
Sent: Monday, May 03, 2004 08:50
To: Cox, Charlie
Subject: Re: [users@httpd] Location matching


Hello Charlie,

Monday, May 3, 2004, 3:26:17 PM, you wrote:

CC> I want to negate this:
CC> <Location ~ /(aa|bbb|cc)/*>
CC>         JkUriSet ...
CC> </Location>

Try this one:

<LocationMatch "/(^aa|^bbb|^cc)/(.+)">
  Do something
</Location>

I'm not sure if negotation is correct in this case. I always mix up !
with ^, but i DO know, that ! means negotation in mod_rewrite though.



-- 
Best regards,
 Eimantas                            mailto:eimantas@lietuvoje.lt


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message