Forum Discussion
HTTP and HTTPS VIPs
What profile is configured for http and https virtual servers
- aandreyy_293459Oct 04, 2017
Nimbostratus
https VIP: + stream iRule
Protocol Profile (Client)TCP
Protocol Profile (Server) tcp
HTTP Profilehttp
FTP Profilenone
RTSP Profilenone
SOCKS Profilenone
Stream Profilestream (source and target empty)
XML Profilenone
http VIP:
Protocol Profile (Client)TCP
Protocol Profile (Server) tcp
HTTP Profilehttp
FTP Profilenone
RTSP Profilenone
SOCKS Profilenone
Stream Profilesome_profile:target: @@
XML Profilenone
- RaghavendraSY_7Oct 04, 2017
Cumulonimbus
Any iRules are assigned to VIP's?
- aandreyy_293459Oct 04, 2017
Nimbostratus
yes, as i said to https i assigned stream iRulewhen 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.
- RaghavendraSY_7Oct 04, 2017
Cumulonimbus
Normally http profile needs to apply when persitence or irule is applied to virtual server. Any persistence and irule is configured for vip 80. I will verify on my end and update you. I got similar issue few months back.
Recent Discussions
Related Content
* 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