[mod_python] Working example for custom errordocuments...

Lee Brown administrator at leebrown.org
Fri Nov 10 11:46:00 EST 2006


Page template and Apache Vhost snippet attached.


Best Regards,
Lee E. Brown
(administrator at leebrown.org)

-----Original Message-----
From: mod_python-bounces at modpython.org
[mailto:mod_python-bounces at modpython.org] On Behalf Of Sean Davis
Sent: Friday, November 10, 2006 11:01 AM
To: mod_python at modpython.org
Subject: Re: [mod_python] Working example for custom errordocuments...

On Friday 10 November 2006 10:42, Lee Brown wrote:
> While a static web page using SSI is not a mod python issue per se, 
> I'll gladly publish the source to the list if others would like to see it.

OK.  I'll bite, as having a nice, simple, and static page is convenient and
easy to maintain.  

Mod_python mailing list
Mod_python at modpython.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: error.shtml
Type: application/octet-stream
Size: 7272 bytes
Desc: not available
Url : http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20061110/a0a6270d/error.obj
-------------- next part --------------
<VirtualHost *:80>
	SSIStartTag "<%"
	SSIEndTag "%>"
	SSIErrorMsg '<!-- SSI ERROR -->'
	<Directory "C:/webdev/sites/fearelesse/error/">
        	Options IncludesNOEXEC
        	AddOutputFilter Includes .shtml
	Alias /error/ "C:/webdev/sites/fearelesse/error/"
	ErrorDocument 400 /error/error.shtml
	ErrorDocument 401 /error/error.shtml
	ErrorDocument 403 /error/error.shtml
	ErrorDocument 404 /error/error.shtml
	ErrorDocument 405 /error/error.shtml
	ErrorDocument 408 /error/error.shtml
	ErrorDocument 410 /error/error.shtml
	ErrorDocument 411 /error/error.shtml
	ErrorDocument 412 /error/error.shtml
	ErrorDocument 413 /error/error.shtml
	ErrorDocument 414 /error/error.shtml
	ErrorDocument 415 /error/error.shtml
	ErrorDocument 500 /error/error.shtml
	ErrorDocument 501 /error/error.shtml
	ErrorDocument 502 /error/error.shtml
	ErrorDocument 503 /error/error.shtml
	ErrorDocument 506 /error/error.shtml

More information about the Mod_python mailing list