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_89166
Noctilucent
Jul 05, 2014sorry i overlooked the http://server1.abc.com:8060 part.
in general, if you want to change url in browser, you have to use HTTP::redirect (or HTTP::respond). HTTP::redirect will send user response asking user to send request to a new url. if the new url is on different port (e.g. 8060), you need another virtual server listening on that port (to accept the new request).
when sending request to pool member, host header and uri can be changed using HTTP::header and HTTP::uri commands respectively.
hope this helps.
Wasim_Hassan_13
Nimbostratus
Jul 06, 2014Hi,
can you please give me the example of redirect. I have one rule already and I have created new VIP against port 8060.
when HTTP_REQUEST {
if { [HTTP::uri] equals "/" } {
HTTP::redirect "http://ebsdmz.abc.com:8060/OA_HTML/AppsLogin"
}
}
ltm virtual VS_TEST {
destination 192.168.206.24:8060
ip-protocol tcp
mask 255.255.255.255
partition PRPRDWEBDMZ
persist {
PRDWEB_STICKY {
default yes
}
}
pool TEST_POOL
profiles {
/Common/tcp { }
PRE-PROD-WEB-DMZ-Profile { }
}
source 0.0.0.0/0
source-address-translation {
type automap
}
vs-index 140
ltm virtual VS_DMZEBS {
destination 192.168.206.23:any
ip-protocol tcp
mask 255.255.255.255
partition PRPRDWEBDMZ
persist {
PRDWEB_STICKY {
default yes
}
}
pool PL_DMZEBS
profiles {
/Common/tcp { }
PRE-PROD-WEB-DMZ-Profile { }
}
rules {
UAT_DMZEBS
}
source 0.0.0.0/0
source-address-translation {
type automap
}
translate-port disabled
vlans {
PRE-PROD-WEB-DMZ
}
vlans-enabled
vs-index 119
Please let me know what will be irule.
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