Forum Discussion

Doran_Lum_13484's avatar
Doran_Lum_13484
Icon for Nimbostratus rankNimbostratus
Mar 01, 2016

Redirect traffic to node ip address

I have a public address https://app.abc.com publish on F5 and we have a single node for this.

 

My application team encounter some error while accessing using the web name and they also enocunter the same issue on the server itself but they have no problem using on the server locally.

 

I'm creating a irule to redirect to the ip address as below. Will it work as it's production system so I would have only a change window to test it out ?

 

when HTTP_REQUEST { if { [HTTP::host] equals "app.abc.com"} { HTTP::redirect "" } }

 

2 Replies

  • If you are performing SSL offloading on the BIG-IP, and the http profile is applied to the Virtual Server in question, then yes, this will work.

     

  • need irule for access from public https://abcd.ss.in with two contexts each context to two pool one context as /onlineapp to node1:7007 and second context is /images to node:80 please help me resolve the issue

     

    when HTTP_REQUEST { if {[string tolower [HTTP::host]] starts_with "http://abcd.ss.in"} { switch -glob [string tolower [HTTP::uri]] {

     

    "/online" { pool node1 } "/images" { pool node2 } } } }