Forum Discussion
Ashley_Penney_5
Nimbostratus
Sep 26, 2008HTTP to HTTPS redirect when 401 received.
Hi,
We have a very... awkward.. web environment here at work, and I'm hoping that I can get some help here to achieve something. We currently do all the SSL handling on the BigIP, and ...
Ashley_Penney_5
Nimbostratus
Sep 26, 2008I spoke to someone else who suggested this:
when HTTP_REQUEST {
set host [HTTP::host]
set uri [HTTP::uri]
}
when HTTP_RESPONSE {
if [ [ HTTP::status ] == "401" ] {
HTTP::redirect "https://$host/$uri"
}
}
Sadly this broke the entire site when I tried putting it in place, but may be a step in the right direction.
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