LunpaCMS Whipping your website into shape! Introducing Lunpa, our mascot.  Her mother was a hamster and her father was Chilean M00se.  Oddly, neither smelt of elderberries.


LunpaCMS Error Pages Documentation

Standard Templates

LunpaCMS comes with three standard error pages that you can configure or replace to use in place of default error messages sent by the server:

Setting Up Error Pages

In order for these pages to be called properly during these errors, you need to add these lines to the <directory> section in the httpd.conf file of your Apache installation:

ErrorDocument 400 /dsanv.cgim?template=error_400&http_status=400
ErrorDocument 403 /dsanv.cgim?template=error_403&http_status=403
ErrorDocument 404 /dsanv.cgim?template=error_404&http_status=404

Note: the http_status=400/3/4 is a vital part of the code, since otherwise you would be responding to an error with a 200 status when the template was displayed.


Add Your Comment


(Only a limited set of HTML tags such as <b>, <i>, <u> are allowed. Embedded flash video from Youtube or Vimeo are also supported.)


Copyright © 2024 Peregrine Computer Consultants Corp. All rights reserved.

About Lunpa, our mascot. Her mother was a hamster and her father was an ill-tempered Chilean M00se. Oddly, neither smelt of elderberries.
The artist is Jennifer Lomax.