Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setenvif question



At 7:02 PM -0500 2/21/05, Robert Dell wrote:
Ok, I THINK I have this right on the httpd.conf apache 1.33 file.

if the user agent is AOL's proxy server then it sets aol
if the request type is HEAD then head is set
if head and aol is set then blockaolproxy is set

SetEnvIf User-Agent ".*AOL.*" aol
SetEnvIf Request-Type ".*HEAD.*" head
SetEnvIf env=head & env=aol blockaolproxy

I'm not sure if I need parentheses on number 3

Either way I doubt it's valid. SetEnvIf takes a perl style regex, not a conditional.


will the above do what i THINK it will do?

I'm sorry, I can't read minds. What are you expecting it to do? How do you expect this to be useful?


WHat you expect it to do and be useful for might be wildly different than what I understand it to do.
--


-dhan

------------------------------------------------------------------------
Dan Shoop                                                   AIM: iWiring
Systems & Networks Architect                     http://www.iwiring.net/
email@hidden                                 http://www.ustsvs.com/

pgp key fingerprint: FAC0 9434 B5A5 24A8 D0AF  12B1 7840 3BE7 3736 DE0B

iWiring designs and supports Internet systems and networks based on
Mac OS X, unix, and Open Source application technologies and offers
24x7, guaranteed support to registered clients, at affordable rates.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macos-x-server/email@hidden

This email sent to email@hidden
References: 
 >setenvif question (From: Robert Dell <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.