Forum Discussion
ShakN_167332
Nimbostratus
Aug 20, 2014Need help in Irule redirection for multiple sites.
in our setup we have sites which are accessed by internal users as well as internet users via http and https. so we have created 4 VS (2 internal VS, one for http and one for https for internal users...
nitass_89166
Noctilucent
Aug 24, 2014am trying to create a data group in my device which is running 10.2.4 build 817 can you please help help how to configure in this. of else cli cmd for tmsh.
e.g.
root@ve10(Active)(tmos) show sys version |grep -A 6 Main\ Package
Main Package
Product BIG-IP
Version 10.2.4
Build 817.0
Edition Hotfix HF7
Date Mon May 20 15:08:56 PDT 2013
root@ve10(Active)(tmos) create ltm data-group redirect_class type string records add { asites.abc.com/xyz/budget { data http://asites.internet.abc.com/sites/budget } asites.abc.com/xyz/finance { data http://asites.internet.abc.com/sites/finance } }
root@ve10(Active)(tmos) list ltm data-group redirect_class
ltm data-group redirect_class {
records {
asites.abc.com/xyz/budget {
data http://asites.internet.abc.com/sites/budget
}
asites.abc.com/xyz/finance {
data http://asites.internet.abc.com/sites/finance
}
}
type string
}
- ShakN_167332Aug 24, 2014
Nimbostratus
when HTTP_REQUEST { if { [HTTP::host] equals "asites.abc.com" } { if { class match [HTTP::uri] equals test } { HTTP::redirect "http://asites.internet.abc.com[class lookup [HTTP::uri] test]" } } } - ShakN_167332Aug 24, 2014
Nimbostratus
will this be the correct way to call my data group test. ltm data-group test { records { asites.abc.com/xyz/finance { data http://asites.internet.abc.com/sites/finance } asites.abc.com/xyz/supplychain { data http://asites.internet.abc.com/sites/supplychain } } type string } - nitass_89166Aug 24, 2014
Noctilucent
in Yann approach, data group only contain uri part (e.g. /xyz/finance /sites/finance, /xyz/supplychain /sites/supplychain). - ShakN_167332Aug 24, 2014
Nimbostratus
Will this irule work for my internet traffic redirection from https to http. when HTTP_REQUEST { if {[class match [IP::client_addr] equals InternalHosts]} { HTTP::redirect http://[HTTP::host][HTTP::uri] } else { switch -glob -- [string tolower [HTTP::host]] { "https://asites.abc.com/bseu/finance" { HTTP::redirect "http://asites.internet.abc.com/sites/finance" } } }
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