Forum Discussion
iRule Redirect to different URL with same POOL member
Hi Team,
We have single POOL member for port 8080 and single VIP for Port 80 pointing to this POOL member.
Currently want to redirect this below URI to different URI but don't want to show this redirect URI (replace with original one)
http://abc.com - iRule to http://www.xxx.com:8080/portal/1 http://def.com - iRule to http://www.xxx.com:8080/portal/2 http://ghi.com - iRule to http://www.xxx.com:8080/portal/3
- Senthil_7991
Nimbostratus
http://abc.com - iRule to http://www.xxx.com:8080/portal/1 http://def.com - iRule to http://www.xxx.com:8080/portal/2 http://ghi.com - iRule to http://www.xxx.com:8080/portal/3
Hello Senthil,
Please apply the below irule to VS and try it
when HTTP_REQUEST { switch [string tolower [HTTP::host]] { "abc.com" { HTTP::uri "/portal/1" } "def.com" { HTTP::uri "/portal/2" } "ghi.com" { HTTP::uri "/portal/3" } } }
- Nandhini_Natara
Nimbostratus
Hello Senthil,
Please apply the below irule to VS and try it
when HTTP_REQUEST { switch [string tolower [HTTP::host]] { "abc.com" { HTTP::uri "/portal/1" } "def.com" { HTTP::uri "/portal/2" } "ghi.com" { HTTP::uri "/portal/3" } } }
- Senthil_7991
Nimbostratus
Thanks Nandhini,
We tried but it's showing "dead link" of due to original "http://abc.com ", not sure if any other way to resolve this issue.
http://abc.com Oops, you've found a dead link. Go back to the previous page Go to the Home Page Atlassian JIRA Project Management Software (v7.1.171004-sha1:d6b2c0d) About JIRA Report a problem Atlassian
- Senthil_7991
Nimbostratus
Hi Team, Any one have idea to implement this rule ?
- jaikumar_f5
Noctilucent
Please run the below and share to us,
`tmsh list ltm virtual
`tmsh list ltm pool
`tmsh list ltm rule
`curl -kv http://abc.com
curl -kv http://www.xxx.com:8080/portal/1
- PeteWhite
Employee
Build this into an LTM Policy with a rule for each of these entries. Work out exactly what you want the rules to be first and plan it based on that.
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