Forum Discussion
Referrers from https to http
You may find that HTTP Referer header passing inside SSL is a browser-dependent behavior, but otherwise you could potentially use a cookie from your HTTPS VIP to your HTTP VIP:
when HTTP_REQUEST {
if { [HTTP::header exists Referer] } {
HTTP::respond 302 Location "http://mysite.domain.com" "Set-Cookie" "refer: [HTTP::header Referer]; path=/;"
}
}
This iRule, placed on the HTTPS VIP, will redirect the user to the HTTP VIP and send a cookie (refer) with the contents of the Referer header. One important caveat is that the HTTPS and HTTP VIP need to have the same hostname (ie. https://www.domain.com and http://www.domain.com). You can technically use a domain cookie if they're not, but it'd be easier if they are.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
