Ido_Katz_38061
May 05, 2010Nimbostratus
Help
Hi Guys,
1st of all I want to tell you that you got great community, you doing a great job!
2nd of all...I have a little problem that I'm sure that one of you can help me, I can't save ...
I have been told that I have to put this line in the begining,could someone please advise with the 1st line?
Thanks a lot for your help
Ido
---------------------------------------------------------------------------------------------------------
I tryied this one:
when HTTP_REQUEST {
if [ HTTP::header exists "subscriberID" ] } {
if [matchclass [HTTP::header "subscriberID"] equals $::subscriberID]} {
pool AA-BB-Pool} {
else {HTTP::respond 301 Location "http://XYZ.com" }
elseif { [matchclass [IP::client_addr] equals $::XXX] } {
log local0. "Valid Source IP: [IP::client_addr] - forwarding traffic"
pool AA-BB-Pool} {
else { HTTP::respond 301 Location "http://XYZ.com" }
log local0. "INVALID Source IP: [IP::client_addr] - dropping traffic" }
But I can't save it because of brace's problem.
Thanks a lot for your help.