OK -

Here is the simple way to deal with this.

First read the article at
http://www.allaire.com/Handlers/index.cfm?ID=15423&Method=Full

You will have to make some modifications to the 404 Error templates or point
the error template to the correct location.

Next, check out http://www.creativedata.net/_errortest

Third, If you want the code, email me. Its really quite simple.

Jim Nitterauer
http://www.creativedata.net

-----Original Message-----
From: Dave Watts [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 26, 2001 8:43 AM
To: CF-Linux
Subject: RE: Default 404 Page


> I tried putting in cferror but had no luck.

CFERROR won't help you here; the site-wide missing template handler is your
only hope.

> I'm trying to figure out how I can get a custom 404 page for
> my CF requested pages on linux. I know you can set up a system
> wide page but, I wanted to have a custom page for every site
> on the server. Is this possible on a linux box? Since .cfm
> requests goes to CF and not apache, htaccess won't catch it.
> Looking for a work around. Thanks in advance!

You should be able to place conditional logic within your missing template
handler to read the CGI.HTTP_HOST variable, then serve up the appropriate
site-specific missing template notification page.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-linux%40houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_linux or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to