Forum Discussion
Marker_58065
Nimbostratus
Dec 15, 2010Append 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...
Greg_33932
Nimbostratus
Oct 14, 2015I know this is an old thread, but I made the following, not as sexy as the glob command, but seems to get the job done and I think is simpler. Hope that helps someone.
when HTTP_REQUEST {
if {[HTTP::host] ends_with ".domain.com"}{
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
} elseif { not ([HTTP::host] contains ".dominionnet.com")}{
HTTP::redirect https://[HTTP::host].domain.com[HTTP::uri]
}
}
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