Forum Discussion
nitass
Aug 22, 2014Employee
can you try something like this?
config
root@(ve11a)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm virtual bar
ltm virtual bar {
destination 172.28.24.10:443
ip-protocol tcp
mask 255.255.255.255
pool foo
profiles {
clientssl {
context clientside
}
http { }
tcp { }
}
rules {
qux
}
source 0.0.0.0/0
source-address-translation {
type automap
}
vs-index 70
}
root@(ve11a)(cfg-sync In Sync)(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 In Sync)(Active)(/Common)(tmos) list ltm rule qux
ltm rule qux {
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "https://mySite.com/" } {
HTTP::uri [string map {https://mySite.com/ /} [HTTP::uri]]
}
}
}
test
1 10 1408672423.5666 (0.0039) C>SV3.1(94) application_data
---------------------------------------------------------------
GET https://mySite.com/myURI?myQueryString HTTP/1.1
Host: mysite.com
---------------------------------------------------------------
New TCP connection 2: 200.200.200.14(40399) <-> 200.200.200.101(80)
1408672423.5814 (0.0139) C>S
---------------------------------------------------------------
GET /myURI?myQueryString HTTP/1.1
Host: mysite.com
---------------------------------------------------------------