Forum Discussion
JRahm
Admin
Oct 05, 2017What is HTTP Part V - HTTP Profile Basic Settings
In the first four parts of this series on HTTP, we laid the foundation for understanding what’s to come. In this article, we’ll focus on the basic settings in the BIG-IP HTTP profile. Before we dive ...
JRahm
Admin
Christ Follower, Husband, Father, Technologist. I love community and I especially love THIS community. My background is networking, but I've dabbled in all the F5 iStuff, I'm a recovering Perl guy, and am very much a python enthusiast. Learning alongside all of you in this accelerating industry toward modern apps and architectures.Thomas_Schaefer
Nimbostratus
Apr 23, 2009I'm not sure if this is what you are after but I have an Initialize iRule fire first (using priority) to determine if the request is https or not.
when HTTP_REQUEST priority 5 {
log local0. "In Initialize"
if {[TCP::local_port] == 443} {
set ::ghttp_protocol "https\:"
} else {
set ::ghttp_protocol "http\:"
}
}
I then use the ghttp_protocol global in another iRule that does the routing.
HTTP::redirect "$::ghttp_protocol//www.domain.com..."
That allows me to use the inbound port to determine if the connection was secure. granted you need to make sure you only allow SSL on 443, but it works.
Tom Schaefer
- Hi Moritz,
http://devcentral.f5.com/wiki/default.aspx/iRules/stream__expression when HTTP_RESPONSE { Disable the stream filter by default STREAM::disable Check if response type is text if {[HTTP::header value Content-Type] contains "text"}{ Replace somestring with foobar STREAM::expression "@somestring@foobar@" Enable the stream filter for this response only STREAM::enable } }
- What are the symptoms of the issue?
- Moritz_Krinke_6Jul 13, 2009
Nimbostratus
Aaron,
Recent 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