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...
hoolio
Cirrostratus
Dec 02, 2009You 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]"
}
}
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
