Forum Discussion
paul_dcc
Nimbostratus
Jul 07, 2014Silent redirect to another server, with out changing the url
Hi All,
I have clients connecting to a server https://test.abc.com and I need to redirect them to https://xxx.com:8080/web/ but with out the original url (https://test.abc.com) changing. Is this...
nitass
Employee
Jul 07, 2014i assume /web will always be added in uri (if not existing) when sending to pool member.
e.g.
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 {
http { }
myclientssl {
context clientside
}
serverssl {
context serverside
}
tcp { }
}
rules {
qux
}
source 0.0.0.0/0
source-address-translation {
type automap
}
vs-index 51
}
root@(ve11a)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm pool foo
ltm pool foo {
members {
200.200.200.101:8080 {
address 200.200.200.101
}
}
}
root@(ve11a)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm rule qux
ltm rule qux {
when HTTP_REQUEST {
HTTP::header replace Host "xxx.com:8080"
if { !([HTTP::path] starts_with "/web/") } {
HTTP::uri "/web[HTTP::uri]"
}
}
}
trace
[root@ve11a:Active:In Sync] config ssldump -Aed -nni 0.0 -k /config/filestore/files_d/Common_d/certificate_key_d/\:Common\:test.key_50349_1 port 443 or port 8080
New TCP connection 1: 172.28.24.1(48372) <-> 172.28.24.10(443)
1 1 1404742921.7294 (0.0340) C>S SSLv2 compatible client hello
1 2 1404742921.7295 (0.0000) S>CV3.1(81) Handshake
1 3 1404742921.7295 (0.0000) S>CV3.1(1052) Handshake
1 4 1404742921.7295 (0.0000) S>CV3.1(4) Handshake
1 5 1404742921.7356 (0.0061) C>SV3.1(134) Handshake
1 6 1404742921.7356 (0.0000) C>SV3.1(1) ChangeCipherSpec
1 7 1404742921.7356 (0.0000) C>SV3.1(48) Handshake
1 8 1404742921.7374 (0.0017) S>CV3.1(1) ChangeCipherSpec
1 9 1404742921.7374 (0.0000) S>CV3.1(48) Handshake
1 10 1404742921.7385 (0.0010) C>SV3.1(176) application_data
---------------------------------------------------------------
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: test.abc.com
---------------------------------------------------------------
New TCP connection 2: 200.200.200.14(48457) <-> 200.200.200.101(8080)
2 1 1404742921.7656 (0.0266) C>SV3.3(141) Handshake
2 2 1404742923.9678 (2.2022) S>CV3.1(81) Handshake
2 3 1404742923.9678 (0.0000) S>CV3.1(1052) Handshake
2 4 1404742923.9678 (0.0000) S>CV3.1(4) Handshake
2 5 1404742923.9695 (0.0017) C>SV3.1(134) Handshake
2 6 1404742923.9695 (0.0000) C>SV3.1(1) ChangeCipherSpec
2 7 1404742923.9696 (0.0000) C>SV3.1(48) Handshake
2 8 1404742924.5055 (0.5359) S>CV3.1(1) ChangeCipherSpec
2 9 1404742924.5055 (0.0000) S>CV3.1(48) Handshake
2 10 1404742924.5061 (0.0005) C>SV3.1(192) application_data
---------------------------------------------------------------
GET /web/ 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: xxx.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