Forum Discussion
madi_56757
Nimbostratus
Mar 11, 2005http forwarding with irule
hello,
I will confiugure a irule to forward to specific URL
the connection will be open to my VIP https://server1.com/123/456.html
and the BIGIP should forward this to http://testserver.de/123/456.html
my suggestion
when HTTP_REQUEST {
if { [HTTP::host] matches_regex "server1.com" } {
and now forward to http://testserver.de[HTTP::uri]
}
}
please help
- Anthony_Vaz_547
Nimbostratus
Hi there - madi_56757
Nimbostratus
hello - madi_56757
Nimbostratus
sorry to adjustment - unRuleY_95363Historic F5 AccountDo you need to forward using the DNS name (testserver.de)?
when HTTP_REQUEST { if { [HTTP::host] matches_regex "server1.com" } { Replace the Host: header with the new name HTTP::header replace "host" "testserver.de" You could also modify the uri with HTTP::uri "new uri" a.b.c.d is the IP address of testserver.de use node a.b.c.d 80 } }
- madi_56757
Nimbostratus
Thanks for your help!when HTTP_REQUEST { set uri [HTTP::uri] set new_host testserver.de set new_url $new_host$uri if { [HTTP::host] matches_regex "server1.com" } { HTTP::uri http://$new_url } }
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