Forum Discussion
Hostname Modification in F5
sorry 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_13Jul 06, 2014
Nimbostratus
Hi, 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.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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