Forum Discussion
GavinW_29074
Nimbostratus
Sep 27, 2011Catching Timeout and HTTP 502/503 Errors
Hi there,
Next question... One of the items that we've got set-up on our current Apache set-up is the ability to catch a 502 "Bad Gateway" and 503 "Service Unavailable" and return a 'Sorry, please try again' page.
We also set the Timeout value to be 30s, so that users aren't sat endlessly waiting for a page that may never return. Instead, they'll get the same 'Sorry, please try again' page after 30 seconds...
Currently, in Apache it's as simple as defining ErrorDocuments within a VHOST...
How can I accomplish the same with the F5?
I've set the Timeout value on the 'TCP' profile to be 30 seconds...
But not sure how to do the 'Sorry' pages...
Cheers
Gav
- Patrick_Chang_7Historic F5 AccountI would do something like the following:
- Michael_Yates
Nimbostratus
Hi GavinW, - GavinW_29074
Nimbostratus
Michael/Patrick - Michael_Yates
Nimbostratus
Basically the same way. Just find out what HTTP::status code it is throwing and handle it the same way. The HTTP::status handler can capture any status code: 200, 301, 302, 500, etc. - hoolio
Cirrostratus
If you want to handle slow server responses, you could tune the TCP profile settings for triggering the LB_FAILED event: - hoolio
Cirrostratus
If you want to handle slow server responses, you could tune the TCP profile settings for triggering the LB_FAILED event: - GavinW_29074
Nimbostratus
Michael,
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