Forum Discussion

Tom_Lebel_53961's avatar
Tom_Lebel_53961
Icon for Nimbostratus rankNimbostratus
Mar 16, 2007

chnage pools and stick to it

I have an iRule that looks at the URI and makes a pool swap if the URI contains a certain text string.

when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
  *altweb  
    { pool IASTestALTWEBPool }
   default
    { pool IASTestPool }
}
}

I am needing to do this because I have 2 instances of a server on one URL, one at port 80, the second at port 7777.

I need those trying to access the ALTWEB to go to the port 7777 web. Problem is, when it hits the Apache, the Apache redirects to /sometext/ALTWEB, and the iRule isn't handling this as I thought is should.

Any thoughts on what might be happening?

TL
No RepliesBe the first to reply