Forum Discussion
nitass
Dec 06, 2011Employee
is it something like this?
[root@ve1023:Active] config b virtual bar list
virtual bar {
snat automap
pool foo
destination 172.28.19.79:80
ip protocol 6
rules myrule
profiles {
http {}
tcp {}
}
}
[root@ve1023:Active] config b pool foo list
pool foo {
members 200.200.200.101:80 {}
}
[root@ve1023:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
if {[string tolower [HTTP::host]] equals "www.company.com"} {
if {[string tolower [HTTP::uri]] starts_with "/thirdparty"} {
HTTP::header replace Host "thirdparty.company.com"
}
}
}
}
[root@ve1023:Active] config ssldump -Aed -nni 0.0 port 80
New TCP connection 1: 172.28.19.253(45435) <-> 172.28.19.79(80)
1323150377.0352 (0.0038) C>S
---------------------------------------------------------------
GET /thirdparty/bhabhabha HTTP/1.1
User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8r zlib/1.2.3 libidn/0.6.5
Host: www.company.com
Accept: */*
---------------------------------------------------------------
New TCP connection 2: 200.200.200.10(45435) <-> 200.200.200.101(80)
1323150377.0363 (0.0009) C>S
---------------------------------------------------------------
GET /thirdparty/bhabhabha HTTP/1.1
User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8r zlib/1.2.3 libidn/0.6.5
Host: thirdparty.company.com
Accept: */*
---------------------------------------------------------------