Dredging up an old question….
On this machine I don’t have the code I used the last time I asked this question. I tried this:
(defmethod acceptor-status-message ((acceptor (eql *test-acceptor*)) (http-status-code (eql 404))) (display-404-page))
but it doesn’t display my own 404 page. What Hunchentoot concept am I missing?
Thanks,
Patrick
On May 31, 2012, at 3:24 PM, Hans Hübner hans.huebner@gmail.com wrote:
On Thu, May 31, 2012 at 8:12 PM, Patrick May patrick.may@mac.com wrote: I'm sure I'm overlooking something simple in the documentation, but I've Googled madly and not found the answer. How do I specify my own 404 page in Hunchentoot?
This is actually documented, albeit maybe a bit hard to find: http://weitz.de/hunchentoot/#acceptor-status-message - I'd gladly accept a documentation patch that puts some prose describing how to customize error pages into a separate chapter.
With no further customization, the error page templates are located in the www/errors/ subdirectory of the Hunchentoot source distribution.
Let me know if you have further questions.
-Hans
tbnl-devel site list tbnl-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/tbnl-devel