Forum Discussion
Dean_Brown_01_1
Nimbostratus
Aug 19, 2013Redirect internal link to external site
We are trying to have a client application use a proxy URL into our Big-IP server through an SSL connection from a mobile client. We want to redirect a Virtual Server input url (.../ms365) back out t...
nitass
Employee
Aug 20, 2013not sure if i understand correctly (i guess i don't). if not, would you mind posting some example please? anyway, this is just a http redirection example based on uri.
e.g.
root@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos) list ltm virtual bar
ltm virtual bar {
destination 172.28.20.111:443
ip-protocol tcp
mask 255.255.255.255
pool foo
profiles {
clientssl {
context clientside
}
http { }
tcp { }
}
rules {
myrule
}
source 0.0.0.0/0
source-address-translation {
type automap
}
vs-index 22
}
root@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos) list ltm pool foo
ltm pool foo {
members {
200.200.200.101:80 {
address 200.200.200.101
}
}
}
root@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos) list ltm rule myrule
ltm rule myrule {
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/ms365" } {
HTTP::redirect "https://login.microsoftonline.com/"
}
}
}
Dean_Brown_01_1
Nimbostratus
Aug 20, 2013yes, your irule matches mine regarding the redirect. Thanks.
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