Forum Discussion
siyadh_121603
Nimbostratus
Aug 14, 2014Rewrite http redirect from one VIP to another VIP
Hi,
We have to make iRule, which should redirect to another VIP in the same LTM if one specific URL trigger.
eg: request URL : http://abc/xyz
redirect URL: http://abc:40001
nitass_89166
Noctilucent
Aug 14, 2014But it is redirecting to https and getting server error 404.
can you post the port 80 and port 40001 virtual servers and their pools configurations?
tmsh list ltm virtual (name)
tmsh list ltm pool (name)
siyadh_121603
Nimbostratus
Aug 16, 2014Hi Nitass,
Please find the below details.
-------------------------------------------
40001:
-------------------------------------------
ltm virtual FIM_40001 {
destination 172.16.215.32:40001
ip-protocol tcp
mask 255.255.255.255
pool FIM_40001
profiles {
tcp { }
}
source 0.0.0.0/0
translate-port disabled
vlans-disabled
}
ltm pool FIM_40001 {
members {
172.16.225.165:40001 {
address 172.16.225.165
session monitor-enabled
state up
}
172.16.225.166:40001 {
address 172.16.225.166
session user-disabled
state up
}
}
monitor gateway_icmp
}
-------------------------------------------
HTTP:
-------------------------------------------
ltm virtual FIM_HTTP_http_virtual {
app-service /Common/FIM_HTTP.app/FIM_HTTP
destination /Common/172.16.215.32:http
ip-protocol tcp
mask 255.255.255.255
pool FIM_HTTP_pool
profiles {
/Common/tcp { }
FIM_HTTP_http_profile { }
}
rules {
/Common/FIM
/Common/FIM-4001
/Common/FIM-4002
}
source 0.0.0.0/0
vlans-disabled
}
ltm pool FIM_HTTP_pool {
app-service /Common/FIM_HTTP.app/FIM_HTTP
load-balancing-mode least-connections-member
members {
/Common/172.16.225.165:http {
address 172.16.225.165
app-service /Common/FIM_HTTP.app/FIM_HTTP
session monitor-enabled
state up
}
/Common/172.16.225.166:http {
address 172.16.225.166
app-service /Common/FIM_HTTP.app/FIM_HTTP
session user-disabled
state up
}
}
monitor FIM_HTTP_http_monitor
slow-ramp-time 300
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects