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



Robert Dell said:

>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
>
>will the above do what i THINK it will do?

Why not try it and see? You can use a browser that allows you to
customize the User-Agent field of the HTTP header, or you can telnet to
your server on port 80 and issue a GET request with a custom User-Agent
value.

Once you're pretty sure you've got it correct (per the documentation),
just tweak your config until your testing shows that the desired
behaviour is occuring.

Cheers
James

-- 
James Tolchard
ICT Services
Christ's College Canterbury
DDI: +64-3-364-6806
 _______________________________________________
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



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.