Forum Discussion
maher_69299
Nimbostratus
Mar 18, 2011Not Caching HTTPS traffic
When we take our web servers for maintenance we would like to post a Sorry message for our customers. Currently we do this successfully with HTTP traffic. How can we do it with HTTPS traffic?. Here is the iRule configuration that works for the HTTP traffic
when HTTP_REQUEST
{
switch [string tolower [HTTP::path]]
{
default
{
HTTP::respond 503 content [lindex $::downsite_html 0] "Content-Type" "text/html" "Retry-After" "3600" "Pragma" "no-cache" "Cache-Control" "no-cache" "Expires" "-1"
}
}
}
7 Replies
Sort By
- maher_69299
Nimbostratus
More explination, the reason we are doing this is because Akami caches our "Sorry" site and it takes many hour before the cache clears. What we did with HTTP is basically to tell Akami not to cache the page so that we we bring our web servers then users can access them instantly. We are looking for a similar iRule that will acheive similar results when users type https://www.xyz.com - Michael_Yates
Nimbostratus
The same rule should work for HTTPS Traffic (Provided you are decrypting the traffic). - maher_69299
Nimbostratus
We tried it, it didn't work - The IRule should work for https VS. If not, I would put in the some logging to see what kind of error it's throwing.
- Michael_Yates
Nimbostratus
I am curious how you tested this on your HTTPS side to determine that it doesn't work. - The guys are right, should work.. Are you hosting the cert on the LTM? You will need to decrypt the SSL in order to use the iRule logic.. you will also need to re-encrypt if the server is expecting SSL.. server side and client side SSL profiles....
- Colin_Walker_12Historic F5 AccountAs a couple of posters have mentioned already: If you aren't decrypting SSL on the LTM there's no way this iRule will ever fire. If you are, then this should work just fine. Verify that you're decrypting SSL on the LTM, that the iRule is applied to the appropriate VIP, and if you're still having problems let us know.
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