Heh... try rubbish.jsp :)
 
..:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com

-----Original Message-----
From: Jennifer Gavin-Wear [mailto:[EMAIL PROTECTED] 
Sent: Sunday, November 27, 2005 8:34 PM
To: CF-Talk
Subject: RE: Apache Virtual Hosts

I tried it on a devel site I'm using.

with
http://sleev-it.fasttrackonline.co.uk/rubbish.html
I get the 404 redirect just fine, and to a cfm page.
with
http://sleev-it.fasttrackonline.co.uk/rubbish.cfm
I get a cf error and no redirect.

Not having a problem with cfincludes, it's web page name changes and
deletions.  I've got people trying to access the old names and I'd just like
to be able to point them to the home page.

Just about all my files are cfm.

-----Original Message-----
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED]
Sent: 28 November 2005 01:26
To: CF-Talk
Subject: RE: Apache Virtual Hosts


What do you mean that it handles all the non .cfm 404's.. it SHOULD by all
right handle any 404 that the server coughs up on that virtual host's host
header. (http://mysite.com/anything.cfm|htm|html|cgi|php| etc...)

If you are getting a page connaot be display|found, check the error number
to be sure it is indeed 404. If it is not, just set up another ErrorDocument
just like the last one but with the new error number.

Eg...

ErrorDocument 401 /401.cfm
ErrorDocument 402 /402.cfm
ErrorDocument 403 /403.cfm
ErrorDocument 404 /404.cfm


I've never used the cf admin missing template deal but I think it was for a
single page to be served up for all sites running on the server and not one
per site.

If you mean missing tempaltes that are cfincluded, I think you can handle
those with the cferror tag and exception=" MissingInclude" (or something
similar)



....:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com

-----Original Message-----
From: Jennifer Gavin-Wear [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 27, 2005 8:19 PM
To: CF-Talk
Subject: RE: Apache Virtual Hosts

Hi Bobby,

Thanks, cool .. it handles all the non .cfm 404's ..

Any ideas on the .cfm side of things please?

The CF docs refer to a missing template handler.  I can see in cf admin
where this is config'd. But I don't get how it works when there is more than
one site running?

Jenny

-----Original Message-----
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED]
Sent: 28 November 2005 00:58
To: CF-Talk
Subject: RE: Apache Virtual Hosts


It's been a while (and even then, most were done with the .htaccess file and
allowoverides turned on) but have you tried just putting the ErrorDocument
in your particular Virtaul host block...

<VirtualHost www.mysite.com>

   ServerName www.mysite.com
   ServerAdmin [EMAIL PROTECTED]
   DocumentRoot /path/to/www/mysite.com
   ErrorDocument 404 /404.cfm

</VirtualHost>

You should be able to call up any page for any error number that way (I
think)

If that doesn’t work, let me know and I'll set one up and try and figure it
out with you.

......:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com











~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:225357
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to