Forum Discussion
smp_86112
Cirrostratus
Jan 06, 2010"Your Site Is Unavailable" HTTP Response Code
We typically apply an iRule to our VIPs which sends a HTTP::redirect to a friendly "your site is not available" page when the LB_FAILED event is triggered. And I haven't actually verified this but according to the doc, the HTTP::fallback statement and the Fallback Host field in the HTTP profile both return a 302 response code. In all of these cases when the browser asks for the site unavailable page, the web server responds with a 200 error code when it returns the site unavailable content.
We have a Google Search Appliance crawling one of our VIPs, and it follows the 302 redirect and indexes the site unavailable content when the LB_FAILED event is triggered.
To work around this, we obviously could return a 404 with some content. However the counter-argument is that this behavior does not comply with HTTP standards.
I'm interested in getting your thoughts.
- The_Bhattman
Nimbostratus
You could certainly set it up so that it performs a 404 against the Google Search Appliance, but no one else would see that. - hoolio
Cirrostratus
Hi smp, - smp_86112
Cirrostratus
Yes, you are both right. In fact, there are many other ways we could resolve this too. But I find it surprising that more people haven't run into problems with this. Would it bother you if we returned a 500 with some content? (sorry, I mean to use 500 and not 404 in my orig post)... Or is does this strike you as irrelevant and something I should just get over? - hoolio
Cirrostratus
Reading RFC2616 for the 302 status, it looks like the response should not be cached unless the server explicitly sets a cache-control header telling the proxy to do so:
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