Forum Discussion
Wasim_Hassan_13
Nimbostratus
Jul 03, 2014Hostname Modification in F5
Hi,
I have below mention requirement
users will have the link
http://testmail.abc.com
and it will redirect to
http://uatebsapp1.abc.com:8060
but i want to hide the ac...
nitass
Employee
Jul 03, 2014e.g.
config
root@(ve11a)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm virtual bar
ltm virtual bar {
destination 172.28.24.10: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 46
}
root@(ve11a)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm pool foo
ltm pool foo {
members {
200.200.200.101:8060 {
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 uatebsapp1.abc.com:8060
}
}
trace
[root@ve11a:Active:In Sync] config ssldump -Aed -nni 0.0 port 80 or port 8060
New TCP connection 1: 172.28.24.1(48569) <-> 172.28.24.10(80)
1404396749.8259 (0.0017) C>S
---------------------------------------------------------------
GET /something 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: testmail.abc.com
---------------------------------------------------------------
New TCP connection 2: 200.200.200.14(48569) <-> 200.200.200.101(8060)
1404396750.0406 (0.2125) C>S
---------------------------------------------------------------
GET /something 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: uatebsapp1.abc.com:8060
---------------------------------------------------------------
Wasim_Hassan_13
Nimbostratus
Jul 04, 2014Hi,
I have one iRule already mapped with VIP
when HTTP_REQUEST {
if { [HTTP::uri] equals "/" } {
HTTP::redirect "http://ebsdmz.abc.com:8080/OA_HTML/AppsLogin"
}
}
so user are getting in the URL below URL after redirection.
http://uatebsapp1.abc.com:8060
Now You want to me add one more iRule as mentoin below like below
when HTTP_REQUEST {
HTTP::header replace Host uatebsapp1.abc.com:8060
But where it is mentioning that user will get the
http://server1.abc.com:8060
Please correct me if i am wrong
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