Forum Discussion
paul_dcc
Nimbostratus
Dec 02, 2009How to replace the Host Name with a differnet one
Hello,
We have a customer that needs to connect to a SAP web portal, they want to be able to just type in https://des and have this redirect to https://des.dorsetcc.local which is not a problem, but they also need to have the new host redirect to be displayed in the browser.
So the user just put’s in des in the browser and when it connects the browser so display des.dorsetcc.local (full domain name)
Any help would be great.
- hoolio
Cirrostratus
You can send an HTTP redirect to the client and they will see the address bar update to the new location value. This assumes that des.dorsetcc.local resolves to the VIP address for the clients.when HTTP_REQUEST { Check host header value if {[string tolower [HTTP::host]] eq "des"}{ Redirect client to the full host name HTTP::redirect "https://des.dorsetcc.local[HTTP::uri]" } }
- paul_dcc
Nimbostratus
Cheers Aaron,
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