Forum Discussion
Marker_58065
Dec 15, 2010Nimbostratus
Append domain when needed and redirect to HTTPS
Here is the background - we have a couple of internal F5s with a bunch of applications that we are doing SSL offloading on. When users access these applications they don't have to type the FQDN becau...
hooleylist
Dec 16, 2010Cirrostratus
Another option would be to name the virtual server with the FQDN that is in DNS and then parse [virtual name] to get the correct hostname. You could avoid manually configuring the IP to hostname mappings with this. A caveat is that you can't rename virtual servers via the GUI. The example below uses the virtual server name up to the first underscore:
virtual www.example.com_http_vs {
destination 10.1.0.15:80
ip protocol tcp
rules vs_name_to_redirect_rule
profiles {
http {}
tcp {}
}
}
when HTTP_REQUEST {
log local0. "parsed https://[getfield [virtual name] _ 1][HTTP::uri]"
HTTP::redirect "https://[getfield [virtual name] _ 1][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