Forum Discussion
Jaz_170005
Nimbostratus
Jan 14, 2015Configuring a virtual server to serve multiple HTTPS sites using the TLS Server Name Indication feature
Hello,
I hope that someone has to deal with the same...I have one VS=test.domain, which servers three secure sites (test1.domain,test2.domain,test3.domain).. so I followed those instruction in this a...
Jaz_170005
Nimbostratus
Jan 15, 2015yes, that's I had to do: 1- associate Stream profile with VS. 2- associate this iRules with VS.
when HTTP_RESPONSE {
Check if response type is text and host isn't null
if {[HTTP::header value Content-Type] contains "text" and $host ne ""}{
Replace http://$host with https://$host
STREAM::expression "@http://$host@https://$host@"
Enable the stream filter for this response only
STREAM::enable
}
Rewrite the Location header in redirects to https://
if { [HTTP::is_redirect] && [string tolower [HTTP::header Location]] starts_with "http://$host"} {
HTTP::header replace Location [string map -nocase "http://$host https://$host" [HTTP::header Location]]
}
}
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