Forum Discussion
Bill_Brazill
Employee
Aug 05, 2014appended url redirect to new pool
I am trying to help our web developers test individual servers in the pool, but still go through the LTM. My idea is to have them append the original url. First I will create a new pool with the sa...
nitass
Employee
Aug 06, 2014you may also have to make sure all embedded object in page is using relative path (not absolute path).
e.g.
config
root@(B6900-R69-S40)(cfg-sync Standalone)(Active)(/Common)(tmos) list ltm virtual bar
ltm virtual bar {
destination 100.100.100.41:80
ip-protocol tcp
mask 255.255.255.255
pool foo
profiles {
http { }
tcp { }
}
rules {
qux
}
source 0.0.0.0/0
source-address-translation {
type automap
}
vs-index 3
}
root@(B6900-R69-S40)(cfg-sync Standalone)(Active)(/Common)(tmos) list ltm pool foo
ltm pool foo {
members {
200.200.200.101:80 {
address 200.200.200.101
}
}
}
root@(B6900-R69-S40)(cfg-sync Standalone)(Active)(/Common)(tmos) list ltm pool testserver
ltm pool testserver {
members {
200.200.200.111:80 {
address 200.200.200.111
}
}
}
root@(B6900-R69-S40)(cfg-sync Standalone)(Active)(/Common)(tmos) list ltm rule qux
ltm rule qux {
when HTTP_REQUEST {
if { [string tolower [HTTP::path]] starts_with "/testserver/" } {
HTTP::uri [string map {/testserver/ /} [HTTP::uri]]
pool testserver
}
}
}
trace
[root@B6900-R69-S40:Active:Standalone] config ssldump -Aed -nni 0.0 port 80
New TCP connection 1: 100.100.100.3(33050) <-> 100.100.100.41(80)
1407298766.2703 (0.0553) C>S
---------------------------------------------------------------
HEAD /testserver/something?abc=1234 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
Host: 100.100.100.41
Accept: */*
---------------------------------------------------------------
New TCP connection 2: 200.200.200.40(33050) <-> 200.200.200.111(80)
1407298766.5858 (0.2505) C>S
---------------------------------------------------------------
HEAD /something?abc=1234 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
Host: 100.100.100.41
Accept: */*
---------------------------------------------------------------
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