Forum Discussion
Bruce_Walker_11
Nimbostratus
Jun 17, 2010Setting header to signify https request
Hi there,
I have one https virtual server (443) that forwards on requests to a pool of servers on port 80. There is also a http virtual server (80) that sends requests on to the same pool of servers.
The application behind the https pool currently redirects to http, the developers have set their application to redirect to https if the X-Forwarded-Proto http header is set to = https.
I was wondering what iRule could be used to set X-Forwarded-Proto to equal https (similar to http://devcentral.f5.com/Forums/tabid/1082223/asg/50/showtab/groupforums/afv/topic/aff/5/aft/790661/Default.aspx)
for all requests that come into the https virtual server. I tried the one in that post with no success.
Thanks in advance,
Bruce
- Chris_Miller
Altostratus
This isn't the answer you're looking for...but why not insert a different header and have them redirect to HTTPs based on that? Otherwise...you could simply rewrite the server's redirect response using an iRule or the "redirect rewrite" section of an HTTP profile... - hoolio
Cirrostratus
You can do this simply with two custom HTTP profiles: - Bruce_Walker_11
Nimbostratus
Thanks for that Aaron- however just trying to figure out how the value is put into the http profile, under Request Header Insert (via the GUI) - hoolio
Cirrostratus
Hi Bruce, - Bruce_Walker_11
Nimbostratus
Hi Aaron,
Sorted now,
Thanks for that.
Bruce
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