Forum Discussion
aandreyy_293459
Nimbostratus
Sep 28, 2017HTTP and HTTPS VIPs
Hi
have some problem: have HTTP and HTTPS VIPs (the same IP). So basically http working fine.
Problem with HTTPS. when i am accessing site https://www.site.com i access it as https (as expect) ...
RaghavendraSY_7
Cumulonimbus
Oct 04, 2017What profile is configured for http and https virtual servers
aandreyy_293459
Nimbostratus
Oct 04, 2017yes, as i said to https i assigned stream iRule
when HTTP_REQUEST { tell server not to compress response HTTP::header remove Accept-Encoding
disable STREAM for request flow
STREAM::disable
} when HTTP_RESPONSE {
catch and replace redirect headers
if { [HTTP::header exists Location] } {
HTTP::header replace Location [string map {"http://" "https://"} [HTTP::header Location]]
}
only look at text data
if { [HTTP::header Content-Type] contains "text" } {
create a STREAM expression to replace any http:// with https://
STREAM::expression {@http://@https://@}
enable STREAM
STREAM::enable
}
}
also exists 301 redirect iRule
when HTTP_REQUEST { if { [HTTP::uri] contains "*****" } { HTTP::respond 301 Location "https://w" } }
and maintenance page iRule.
By the way there are 2 web sites on the same server behind this VIP. And looks like one site performs well.
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
