Forum Discussion
natewood70
Nimbostratus
Mar 11, 2015Load Balance Friendly URL to two unfriendly URL's
Hey Everyone,
Still being new to the F5 (It was pretty much thrown in my lap) some basic configuration items still go over my head.
I was wondering if it would be possible to create an iRul...
nitass
Employee
Mar 23, 2015where exactly do I implement the HTTP:uri command?
e.g.
config
root@(ve11b)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm data-group internal QATEST
ltm data-group internal QATEST {
records {
200.200.200.101 {
data myunfriendlyurl1.com:8080
}
200.200.200.111 {
data myunfriendlyurl2.com:8080
}
}
type string
}
root@(ve11b)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm rule qux
ltm rule qux {
when HTTP_REQUEST {
if { [HTTP::uri] equals "/" } {
HTTP::uri "/iam/im/TBCQAIME/ui7/index.jsp"
}
}
when HTTP_REQUEST_SEND {
if { [class match -- [LB::server addr] equals QATEST] } {
clientside {
HTTP::header replace Host [class match -value [LB::server addr] equals QATEST]
}
}
}
}
trace
[root@ve11b:Active:In Sync] config ssldump -Aed -nni 0.0 port 80 or port 8080
New TCP connection 1: 172.28.24.1(53952) <-> 172.28.24.10(80)
1427117900.1645 (0.0014) C>S
---------------------------------------------------------------
GET / HTTP/1.1
User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
Accept: */*
Host: myfriendlyurl.com
---------------------------------------------------------------
New TCP connection 2: 200.200.200.14(53952) <-> 200.200.200.111(8080)
1427117900.1663 (0.0017) C>S
---------------------------------------------------------------
GET /iam/im/TBCQAIME/ui7/index.jsp HTTP/1.1
User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
Accept: */*
Host: myunfriendlyurl2.com:8080
---------------------------------------------------------------
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