Generating Useful Error Pages With Pound
The service is not available. Please try again later.
This isn’t very helpful to clients who probably have no idea why their site is unreachable. After getting NAT back up and running, I decided to work on replacing this error with something a little more useful.
Pound lets you create error files that will be displayed if all the hosts are unreachable. Just add any of the following strings to the ListenHTTP section of your pound.cfg file (man pound for more info):
Err414 "filename" #A file with the text to be displayed if an Error 414 occurs. Default: "Request URI is too long.". Err500 "filename" #A file with the text to be displayed if an Error 500 occurs. Default: "An internal server error occurred. Please try again later.". Err501 "filename" #A file with the text to be displayed if an Error 501 occurs. Default: "This method may not be used.". Err503 "filename" #A file with the text to be displayed if an Error 503 occurs. Default: "The service is not available. Please try again later.".
Pound appears to cache these error files, so you’ll need to restart pound for it to pick up any changes to the error files you specified.
Presenting visitors with a more informative error message will do wonders to ease the stress of any unexpected downtime. I highly recommend it.
Leave a Reply
Contact Us
Search this Site
Archives
- October 2009 (1)
- September 2009 (2)
- August 2009 (2)
- June 2009 (1)
- May 2009 (1)
- March 2009 (2)
- February 2009 (3)
- January 2009 (5)
- December 2008 (1)
- November 2008 (2)
- October 2008 (3)
- September 2008 (4)
- August 2008 (4)






