Forum Discussion
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
- VernonWells
Employee
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.
- lakshmianrayana
Altostratus
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 } } } }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com