Forum Discussion
pedinopa_170325
Nimbostratus
8 years agoHSTS via irule
I have 2 irules. 1 for HTTP HSTS and the other for HTTPS HSTS. they insert the headers but hsts is not enabled. I am running 11.5.4 so the HSTS config is not in my HTTP profile, how can I enable it...
kolom_265617
Cirrostratus
8 years agoHello pedinopa,
You should enable HSTS only on virtual servers with client SSL profiles.You can enable HSTS on HTTPS Virtual server using the below iRule.
when HTTP_RESPONSE {
if { !([ HTTP::header exists "Strict-Transport-Security“ ])}
{ HTTP::header insert "Strict-Transport-Security" "16070400" }
}
kolom_265617
Cirrostratus
8 years agoplease post a snapshot of the part that is saying it's there but not enabled.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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