RE: custom error pages

2006-03-20 Thread Snake
Bah, it's bloody CF and the flaky way it searches for CFC's
For some reason it is looking in custom tag paths before looking in the
local folder.

Russ 

-Original Message-
From: Russ Michaels [mailto:[EMAIL PROTECTED] 
Sent: 21 March 2006 00:40
To: CF-Talk
Subject: custom error pages

has anyone ever had a problem with sites using the custom error pages from a
different site?

I have had a client tell me that randomly his site (lets call it site1.com)
is throwing errors because it is trying to use the sitewide error handler
from another site (site2.com), even when no error has actually occured on
his site.
The site wide error handler is set as  "\error.cfm" in the cfadmin, which
itself causes the following errorwhen the wrong one is executed.

"access denied (java.io.FilePermission E:\wwwroot\site2.com\wwwroot\tags
read) null
The error occurred on line -1. "

which is presumably because the error.cfm is trying to use files in
site2.com that site1.com doesn't have permission to use because of it's
security sanbox.

Both sites do have their own custom error.cfm files.

So there is 2 issues here.

1. why is the error.cfm even being executed when no error has occured on the
site 2. why is the error.cfm from another site being executed

Russ





~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:235836
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


custom error pages

2006-03-20 Thread Russ Michaels
has anyone ever had a problem with sites using the custom error pages from a 
different site?

I have had a client tell me that randomly his site (lets call it site1.com) 
is throwing errors because it is trying to use the sitewide error handler 
from another site (site2.com), even when no error has actually occured on 
his site.
The site wide error handler is set as  "\error.cfm" in the cfadmin, which 
itself causes the following errorwhen the wrong one is executed.

"access denied (java.io.FilePermission E:\wwwroot\site2.com\wwwroot\tags 
read) null
The error occurred on line -1. "

which is presumably because the error.cfm is trying to use files in 
site2.com that site1.com doesn't have permission to use because of it's 
security sanbox.

Both sites do have their own custom error.cfm files.

So there is 2 issues here.

1. why is the error.cfm even being executed when no error has occured on the 
site
2. why is the error.cfm from another site being executed

Russ



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:235833
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


Re: Custom Error Pages

2005-11-28 Thread Matt Robertson
On 11/27/05, ColdFusion <[EMAIL PROTECTED]> wrote:
> In a shared hosting environment where HELMs is used, you can establish
> custom error templates for 404 errors and others.

As you can see the answer to this is entirely dependent on your
hosting provider.  They can do something very simple in the missing
template handler that will redirect to
#cgi.http_host#/wherever/whatever.cfm if file exists, for example. 
That would be only a few lines of code and would work for every one of
their customers on that box.

But they have to decide to do it.

Another reason I love dedicated servers :-)

--
--mattRobertson--
Janitor, MSB Web Systems
mysecretbase.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:225461
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Custom Error Pages

2005-11-28 Thread Justin D. Scott
That is good to know.  I very rarely use charting, but if it ever breaks
somewhere I'll know where to look .

-Justin Scott
 

> -Original Message-
> From: Snake [mailto:[EMAIL PROTECTED] 
> Sent: Monday, November 28, 2005 8:14 AM
> To: CF-Talk
> Subject: RE: Custom Error Pages
> 
> If this setting is enabled it breaks cfcharting. 
> 
> -Original Message-
> From: Justin D. Scott [mailto:[EMAIL PROTECTED] 
> Sent: 28 November 2005 12:59
> To: CF-Talk
> Subject: RE: Custom Error Pages
> 
> Also remember that you can set IIS to "check if file exists" 
> before passing
> the request off to ColdFusion so that IIS would handle 404's 
> on cfm files as
> well.  It would depend on your host as to how that was set.
> 
> -Justin Scott
>  
> 
> > -Original Message-
> > From: Snake [mailto:[EMAIL PROTECTED]
> > Sent: Monday, November 28, 2005 6:24 AM
> > To: CF-Talk
> > Subject: RE: Custom Error Pages
> > 
> > Coldfusion 404 errors are not handled by IIS.
> > This is a setting in the CFADMIN that specifies a global 
> 404 page for 
> > missing .CFM pages.
> > 
> > As far as he regular IIS errors, you can specify any page you like, 
> > the extension doesn't matter.
> > 
> > --
> > Snake
> > 
> > -Original Message-
> > From: ColdFusion [mailto:[EMAIL PROTECTED]
> > Sent: 28 November 2005 01:29
> > To: CF-Talk
> > Subject: Custom Error Pages
> > 
> > In a shared hosting environment where HELMs is used, you 
> can establish 
> > custom error templates for 404 errors and others.
> > 
> > Now if I want to redirect 404 errors to an error page such as:
> > /errors/404.cfm
> > 
> > That should be fine, right? Or does it need to be an HTM page?
> > 
> > I was informed this:
> > I think the custom error pages work provided that you call 
> a URL that 
> > doesn't end with .cfm.
> > 
> > Anyone have more information about it?
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> 
> 
> 
> 

~|
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:225411
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Custom Error Pages

2005-11-28 Thread Adkins, Randy
Yeah that is the one drawback of it. So what I have done was
Created an error template and any call to a CFM page that generates
An error such as REQUEST or EXCEPTION it is redirected to the
Error template I have specified.

 

-Original Message-
From: James Holmes [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 28, 2005 8:18 AM
To: CF-Talk
Subject: Re: Custom Error Pages

Remembering also that this breaks CFCHART and other things that rely on
a servlet mapping.

On 11/28/05, Justin D. Scott <[EMAIL PROTECTED]> wrote:
> Also remember that you can set IIS to "check if file exists" before 
> passing the request off to ColdFusion so that IIS would handle 404's 
> on cfm files as well.  It would depend on your host as to how that was
set.

--
CFAJAX docs and other useful articles:
http://jr-holmes.coldfusionjournal.com/



~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:225390
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


Re: Custom Error Pages

2005-11-28 Thread James Holmes
Remembering also that this breaks CFCHART and other things that rely
on a servlet mapping.

On 11/28/05, Justin D. Scott <[EMAIL PROTECTED]> wrote:
> Also remember that you can set IIS to "check if file exists" before passing
> the request off to ColdFusion so that IIS would handle 404's on cfm files as
> well.  It would depend on your host as to how that was set.

--
CFAJAX docs and other useful articles:
http://jr-holmes.coldfusionjournal.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:225384
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


RE: Custom Error Pages

2005-11-28 Thread Snake
If this setting is enabled it breaks cfcharting. 

-Original Message-
From: Justin D. Scott [mailto:[EMAIL PROTECTED] 
Sent: 28 November 2005 12:59
To: CF-Talk
Subject: RE: Custom Error Pages

Also remember that you can set IIS to "check if file exists" before passing
the request off to ColdFusion so that IIS would handle 404's on cfm files as
well.  It would depend on your host as to how that was set.

-Justin Scott
 

> -Original Message-
> From: Snake [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 28, 2005 6:24 AM
> To: CF-Talk
> Subject: RE: Custom Error Pages
> 
> Coldfusion 404 errors are not handled by IIS.
> This is a setting in the CFADMIN that specifies a global 404 page for 
> missing .CFM pages.
> 
> As far as he regular IIS errors, you can specify any page you like, 
> the extension doesn't matter.
> 
> --
> Snake
> 
> -Original Message-
> From: ColdFusion [mailto:[EMAIL PROTECTED]
> Sent: 28 November 2005 01:29
> To: CF-Talk
> Subject: Custom Error Pages
> 
> In a shared hosting environment where HELMs is used, you can establish 
> custom error templates for 404 errors and others.
> 
> Now if I want to redirect 404 errors to an error page such as:
> /errors/404.cfm
> 
> That should be fine, right? Or does it need to be an HTM page?
> 
> I was informed this:
> I think the custom error pages work provided that you call a URL that 
> doesn't end with .cfm.
> 
> Anyone have more information about it?
> 
> 
> 
> 
> 
> 
> 



~|
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:225382
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


RE: Custom Error Pages

2005-11-28 Thread Justin D. Scott
Also remember that you can set IIS to "check if file exists" before passing
the request off to ColdFusion so that IIS would handle 404's on cfm files as
well.  It would depend on your host as to how that was set.

-Justin Scott
 

> -Original Message-
> From: Snake [mailto:[EMAIL PROTECTED] 
> Sent: Monday, November 28, 2005 6:24 AM
> To: CF-Talk
> Subject: RE: Custom Error Pages
> 
> Coldfusion 404 errors are not handled by IIS.
> This is a setting in the CFADMIN that specifies a global 404 page for
> missing .CFM pages.
> 
> As far as he regular IIS errors, you can specify any page you 
> like, the
> extension doesn't matter.
> 
> --
> Snake
> 
> -Original Message-
> From: ColdFusion [mailto:[EMAIL PROTECTED] 
> Sent: 28 November 2005 01:29
> To: CF-Talk
> Subject: Custom Error Pages
> 
> In a shared hosting environment where HELMs is used, you can establish
> custom error templates for 404 errors and others.
> 
> Now if I want to redirect 404 errors to an error page such as:
> /errors/404.cfm
> 
> That should be fine, right? Or does it need to be an HTM page?
> 
> I was informed this:
> I think the custom error pages work provided that you call a URL that
> doesn't end with .cfm.
> 
> Anyone have more information about it?
> 
> 
> 
> 
> 
> 
> 

~|
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:225381
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Custom Error Pages

2005-11-28 Thread Snake
Coldfusion 404 errors are not handled by IIS.
This is a setting in the CFADMIN that specifies a global 404 page for
missing .CFM pages.

As far as he regular IIS errors, you can specify any page you like, the
extension doesn't matter.

--
Snake

-Original Message-
From: ColdFusion [mailto:[EMAIL PROTECTED] 
Sent: 28 November 2005 01:29
To: CF-Talk
Subject: Custom Error Pages

In a shared hosting environment where HELMs is used, you can establish
custom error templates for 404 errors and others.

Now if I want to redirect 404 errors to an error page such as:
/errors/404.cfm

That should be fine, right? Or does it need to be an HTM page?

I was informed this:
I think the custom error pages work provided that you call a URL that
doesn't end with .cfm.

Anyone have more information about it?






~|
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:225375
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Custom Error Pages

2005-11-27 Thread James Holmes
The hosting company would have to edit the missing template handler to
check to see if the URL was from your site (e.g. by checking the
CGI.HTTP_HOST variable) and redirect as appropriate.

On 11/28/05, ColdFusion <[EMAIL PROTECTED]> wrote:
> Is there anyway to get calls to CF pages to be redirected to the error
> Pages created without using the CF Administrator since it is a
> Shared hosting environment?

--
CFAJAX docs and other useful articles:
http://jr-holmes.coldfusionjournal.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:225364
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


RE: Custom Error Pages

2005-11-27 Thread ColdFusion
Is there anyway to get calls to CF pages to be redirected to the error
Pages created without using the CF Administrator since it is a 
Shared hosting environment?


-Original Message-
From: James Holmes [mailto:[EMAIL PROTECTED] 
Sent: Sunday, November 27, 2005 8:39 PM
To: CF-Talk
Subject: Re: Custom Error Pages

All CF pages on the server share the same CF missing template handler (if
one has been specified). The information you received was correct
- only non CF requests will use the custom error handler you specify.

On 11/28/05, ColdFusion <[EMAIL PROTECTED]> wrote:
> In a shared hosting environment where HELMs is used, you can establish 
> custom error templates for 404 errors and others.
>
> Now if I want to redirect 404 errors to an error page such as:
> /errors/404.cfm
>
> That should be fine, right? Or does it need to be an HTM page?
>
> I was informed this:
> I think the custom error pages work provided that you call a URL that 
> doesn't end with .cfm.
>
> Anyone have more information about it?
--
CFAJAX docs and other useful articles:
http://jr-holmes.coldfusionjournal.com/



~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:225363
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


Re: Custom Error Pages

2005-11-27 Thread James Holmes
All CF pages on the server share the same CF missing template handler
(if one has been specified). The information you received was correct
- only non CF requests will use the custom error handler you specify.

On 11/28/05, ColdFusion <[EMAIL PROTECTED]> wrote:
> In a shared hosting environment where HELMs is used, you can establish
> custom error templates for 404 errors and others.
>
> Now if I want to redirect 404 errors to an error page such as:
> /errors/404.cfm
>
> That should be fine, right? Or does it need to be an HTM page?
>
> I was informed this:
> I think the custom error pages work provided that you call a URL that
> doesn't end with .cfm.
>
> Anyone have more information about it?
--
CFAJAX docs and other useful articles:
http://jr-holmes.coldfusionjournal.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:225356
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


Custom Error Pages

2005-11-27 Thread ColdFusion
In a shared hosting environment where HELMs is used, you can establish
custom error templates for 404 errors and others.

Now if I want to redirect 404 errors to an error page such as:
/errors/404.cfm

That should be fine, right? Or does it need to be an HTM page?

I was informed this:
I think the custom error pages work provided that you call a URL that
doesn't end with .cfm.

Anyone have more information about it?




~|
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:225353
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


FW: Custom error pages

2005-11-25 Thread Snake
Anyone ever seen this before.

You setup a custom error page for missing cfm pages.
So when I call nosuchpage.cfm it is displayed.
But afterwards the normal error is also diaplyed that you get if you do not
have a custom error page.

--
Snake



~|
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:225236
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: IIS Custom Error Pages in CF?

2004-03-31 Thread Mark A. Kruger - CFG
welcome!
  -Original Message-
  From: Jim McAtee [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, March 31, 2004 1:16 PM
  To: CF-Talk
  Subject: Re: IIS Custom Error Pages in CF?

  Bert & Mark:

  Thanks!  I had been trying with the message type still set to 'file'.

  Jim

  - Original Message - 
  From: "Mark A. Kruger - CFG" <[EMAIL PROTECTED]>
  To: "CF-Talk" <[EMAIL PROTECTED]>
  Sent: Wednesday, March 31, 2004 6:38 AM
  Subject: RE: IIS Custom Error Pages in CF?

  > Yes you can.
  >
  > 1) Go into IIS properties for your site and choose the "custom errors"
  tab.
  > 2) Select the 404 error and choose edit.
  > 3) change the "message type" from file to URL
  > 4) Enter a .cfm page with a path relative to THIS site.  So, for
  example, if you put a "missingFile.cfm" handler in your
  > root folder you would enter "missingFile.cfm" - or if it was in a folder
  called Bob it would be "Bob/missingfile.cfm".
  >
  > This can be quite useful.  I use this technique for some subscription
  sites that wish to create unique URL's for their
  > client subscribers.  After subscribing the user is instructed to use
  "blah.com/name" (i.e. blah.com/MarySmith).  Of
  > course the directory "MarySmith" doesn't exist so the request is
  forwarded to my .cfm file handler.  The file handler
  > parses out "MarySmith" and sends the user to a customized page for login
  or whatever.
  >
  > A similar trick uses a wildcard entry on a DNS server to allow a user to
  go to "marySmith.blah.com" - both tricks are
  > great for sales CRM tools, real estate sites and the like - any place
  where you want a use to have a "personal website"
  > but it actually connected to a larger group or site.
  >
  > -mark
  >
  > Mark A. Kruger, MCSE, CFG
  > www.cfwebtools.com
  > www.necfug.com
  > http://blog.mxconsulting.com
  > ...what the web can be!
  >
  >
  >
  >
  >  -Original Message-
  > From: Jim McAtee [mailto:[EMAIL PROTECTED]
  > Sent: Tuesday, March 30, 2004 9:03 PM
  > To: CF-Talk
  > Subject: OT: IIS Custom Error Pages in CF?
  >
  >
  >   I'm trying to figure out if I can use a .cfm page (or possibly an .asp
  >   page) for an IIS 5 custom 404 error page.  I'm _not_ trying to
  configure
  >   CF's missing template handler as done through the CF Administrator.
  That
  >   works fine.
  >
  >   It appears that if you designate a .cfm page for 404 errors (for
  example:
  >   http://mysite.com/notapage.htm) then the .cfm page doesn't get sent
  >   through the CF engine.  Can this behaviour be changed?  What about
  .asp
  >   pages - same problem?  I haven't tried that route yet.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: IIS Custom Error Pages in CF?

2004-03-31 Thread Jim McAtee
Bert & Mark:

Thanks!  I had been trying with the message type still set to 'file'.

Jim

- Original Message - 
From: "Mark A. Kruger - CFG" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, March 31, 2004 6:38 AM
Subject: RE: IIS Custom Error Pages in CF?

> Yes you can.
>
> 1) Go into IIS properties for your site and choose the "custom errors"
tab.
> 2) Select the 404 error and choose edit.
> 3) change the "message type" from file to URL
> 4) Enter a .cfm page with a path relative to THIS site.  So, for
example, if you put a "missingFile.cfm" handler in your
> root folder you would enter "missingFile.cfm" - or if it was in a folder
called Bob it would be "Bob/missingfile.cfm".
>
> This can be quite useful.  I use this technique for some subscription
sites that wish to create unique URL's for their
> client subscribers.  After subscribing the user is instructed to use
"blah.com/name" (i.e. blah.com/MarySmith).  Of
> course the directory "MarySmith" doesn't exist so the request is
forwarded to my .cfm file handler.  The file handler
> parses out "MarySmith" and sends the user to a customized page for login
or whatever.
>
> A similar trick uses a wildcard entry on a DNS server to allow a user to
go to "marySmith.blah.com" - both tricks are
> great for sales CRM tools, real estate sites and the like - any place
where you want a use to have a "personal website"
> but it actually connected to a larger group or site.
>
> -mark
>
> Mark A. Kruger, MCSE, CFG
> www.cfwebtools.com
> www.necfug.com
> http://blog.mxconsulting.com
> ...what the web can be!
>
>
>
>
>  -Original Message-
> From: Jim McAtee [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 30, 2004 9:03 PM
> To: CF-Talk
> Subject: OT: IIS Custom Error Pages in CF?
>
>
>   I'm trying to figure out if I can use a .cfm page (or possibly an .asp
>   page) for an IIS 5 custom 404 error page.  I'm _not_ trying to
configure
>   CF's missing template handler as done through the CF Administrator.
That
>   works fine.
>
>   It appears that if you designate a .cfm page for 404 errors (for
example:
>   http://mysite.com/notapage.htm) then the .cfm page doesn't get sent
>   through the CF engine.  Can this behaviour be changed?  What about
.asp
>   pages - same problem?  I haven't tried that route yet.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: IIS Custom Error Pages in CF?

2004-03-31 Thread Burns, John D
I've helped do that before at a previous employer.  My only question
about doing it has been, is there any kind of a (noticeable) performance
hit with doing searches, etc through the 404 page?  I don't know how IIS
handles 404 and if it does any kind of extra logging or anything that it
doesn't do for normal pages.

John 

-Original Message-
From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 31, 2004 8:39 AM
To: CF-Talk
Subject: RE: IIS Custom Error Pages in CF?

Yes you can.

1) Go into IIS properties for your site and choose the "custom errors"
tab.
2) Select the 404 error and choose edit.
3) change the "message type" from file to URL
4) Enter a .cfm page with a path relative to THIS site.  So, for
example, if you put a "missingFile.cfm" handler in your root folder you
would enter "missingFile.cfm" - or if it was in a folder called Bob it
would be "Bob/missingfile.cfm".

This can be quite useful.  I use this technique for some subscription
sites that wish to create unique URL's for their client subscribers.
After subscribing the user is instructed to use "blah.com/name" (i.e.
blah.com/MarySmith).  Of course the directory "MarySmith" doesn't exist
so the request is forwarded to my .cfm file handler.  The file handler
parses out "MarySmith" and sends the user to a customized page for login
or whatever.

A similar trick uses a wildcard entry on a DNS server to allow a user to
go to "marySmith.blah.com" - both tricks are great for sales CRM tools,
real estate sites and the like - any place where you want a use to have
a "personal website"
but it actually connected to a larger group or site.

-mark

Mark A. Kruger, MCSE, CFG
www.cfwebtools.com
www.necfug.com
http://blog.mxconsulting.com
...what the web can be!


 -Original Message-----
From: Jim McAtee [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 9:03 PM
To: CF-Talk
Subject: OT: IIS Custom Error Pages in CF?

  I'm trying to figure out if I can use a .cfm page (or possibly an .asp
  page) for an IIS 5 custom 404 error page.  I'm _not_ trying to
configure
  CF's missing template handler as done through the CF Administrator.
That
  works fine.

  It appears that if you designate a .cfm page for 404 errors (for
example:
  http://mysite.com/notapage.htm) then the .cfm page doesn't get sent
  through the CF engine.  Can this behaviour be changed?  What about
.asp
  pages - same problem?  I haven't tried that route yet.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: IIS Custom Error Pages in CF?

2004-03-31 Thread Mark A. Kruger - CFG
Yes you can.

1) Go into IIS properties for your site and choose the "custom errors" tab.
2) Select the 404 error and choose edit.
3) change the "message type" from file to URL
4) Enter a .cfm page with a path relative to THIS site.  So, for example, if you put a "missingFile.cfm" handler in your
root folder you would enter "missingFile.cfm" - or if it was in a folder called Bob it would be "Bob/missingfile.cfm".

This can be quite useful.  I use this technique for some subscription sites that wish to create unique URL's for their
client subscribers.  After subscribing the user is instructed to use "blah.com/name" (i.e. blah.com/MarySmith).  Of
course the directory "MarySmith" doesn't exist so the request is forwarded to my .cfm file handler.  The file handler
parses out "MarySmith" and sends the user to a customized page for login or whatever.

A similar trick uses a wildcard entry on a DNS server to allow a user to go to "marySmith.blah.com" - both tricks are
great for sales CRM tools, real estate sites and the like - any place where you want a use to have a "personal website"
but it actually connected to a larger group or site.

-mark

Mark A. Kruger, MCSE, CFG
www.cfwebtools.com
www.necfug.com
http://blog.mxconsulting.com
...what the web can be!


 -Original Message-
From: Jim McAtee [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 9:03 PM
To: CF-Talk
Subject: OT: IIS Custom Error Pages in CF?

  I'm trying to figure out if I can use a .cfm page (or possibly an .asp
  page) for an IIS 5 custom 404 error page.  I'm _not_ trying to configure
  CF's missing template handler as done through the CF Administrator.  That
  works fine.

  It appears that if you designate a .cfm page for 404 errors (for example:
  http://mysite.com/notapage.htm) then the .cfm page doesn't get sent
  through the CF engine.  Can this behaviour be changed?  What about .asp
  pages - same problem?  I haven't tried that route yet.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: IIS Custom Error Pages in CF?

2004-03-31 Thread Bert Dawson
Are you mapping it to a URL?
I use this technique sucesfully - here's the setting on the "Error Mapping Properties":

Error Code: 404
Default Text: Not Found
Message Type: URL
URL: /index.cfm/fa/find.iis404

HTH
Bert

Ps you'll notice I use SES style URLs to pass parameters to the page - I've got a feeling that normal URL parameters didn't work, or did something strange, but it was a long time ago I set it up so I can't say for sure. 

> 
> -Original Message-
> From: Jim McAtee [mailto:[EMAIL PROTECTED] 
> Sent: 31 March 2004 04:03
> To: CF-Talk
> Subject: OT: IIS Custom Error Pages in CF?
> 
> 
> I'm trying to figure out if I can use a .cfm page (or possibly an .asp
> page) for an IIS 5 custom 404 error page.  I'm _not_ trying 
> to configure
> CF's missing template handler as done through the CF 
> Administrator.  That
> works fine.
> 
> It appears that if you designate a .cfm page for 404 errors 
> (for example:
> http://mysite.com/notapage.htm) then the .cfm page doesn't get sent
> through the CF engine.  Can this behaviour be changed?  What 
> about .asp
> pages - same problem?  I haven't tried that route yet.
> 
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




OT: IIS Custom Error Pages in CF?

2004-03-30 Thread Jim McAtee
I'm trying to figure out if I can use a .cfm page (or possibly an .asp
page) for an IIS 5 custom 404 error page.  I'm _not_ trying to configure
CF's missing template handler as done through the CF Administrator.  That
works fine.

It appears that if you designate a .cfm page for 404 errors (for example:
http://mysite.com/notapage.htm) then the .cfm page doesn't get sent
through the CF engine.  Can this behaviour be changed?  What about .asp
pages - same problem?  I haven't tried that route yet.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Custom error pages

2001-06-05 Thread Steve Vosloo

Excellent - thanks.



> -Original Message-
> From: Dylan Bromby [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 05, 2001 5:55 PM
> To: CF-Talk
> Subject: Re: Custom error pages
>
>
> Yes. Using IIS 5 as the example, right-click on the web site from the list
> in the IIS console. Choose properties. Click the "Custom Errors" tab.
>
> You can do it for each site.
>
> On 6/5/01 8:17 AM, "Steve Vosloo" <[EMAIL PROTECTED]> wrote:
>
> > Can I do that per website hosted on the box?
> >
> >
> >
> >> -Original Message-
> >> From: Dylan Bromby [mailto:[EMAIL PROTECTED]]
> >> Sent: Tuesday, June 05, 2001 5:05 PM
> >> To: CF-Talk
> >> Subject: RE: Custom error pages
> >>
> >>
> >> you can specifiy your own custom error pages using IIS if you're
> >> running it.
> >>
> >> -Original Message-
> >> From: Steve Vosloo [mailto:[EMAIL PROTECTED]]
> >> Sent: Tuesday, June 05, 2001 7:51 AM
> >> To: CF-Talk
> >> Subject: Custom error pages
> >>
> >>
> >> I need to create 2 custom error pages for an application. One
> is for 404
> >> errors (page not found), and the other is for any other server
> >> errors. Armed
> >> with CFERROR and CFTRY/CFCATCH, does anyone have suggestions on how to
> >> achieve this?
> >>
> >> Thanks
> >> Steve
> >>
> >> Development Manager
> >> Vardus Internet Solutions (SA)
> >>
> >> Tel: (+27) 21 670 9880
> >> Fax: (+27) 21 674 4549
> >>
> >> Email: [EMAIL PROTECTED]
> >> Website: www.vardus.com
> >>
> >
>
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Custom error pages

2001-06-05 Thread Dylan Bromby

Yes. Using IIS 5 as the example, right-click on the web site from the list
in the IIS console. Choose properties. Click the "Custom Errors" tab.

You can do it for each site.

On 6/5/01 8:17 AM, "Steve Vosloo" <[EMAIL PROTECTED]> wrote:

> Can I do that per website hosted on the box?
> 
> 
> 
>> -Original Message-
>> From: Dylan Bromby [mailto:[EMAIL PROTECTED]]
>> Sent: Tuesday, June 05, 2001 5:05 PM
>> To: CF-Talk
>> Subject: RE: Custom error pages
>> 
>> 
>> you can specifiy your own custom error pages using IIS if you're
>> running it.
>> 
>> -Original Message-
>> From: Steve Vosloo [mailto:[EMAIL PROTECTED]]
>> Sent: Tuesday, June 05, 2001 7:51 AM
>> To: CF-Talk
>> Subject: Custom error pages
>> 
>> 
>> I need to create 2 custom error pages for an application. One is for 404
>> errors (page not found), and the other is for any other server
>> errors. Armed
>> with CFERROR and CFTRY/CFCATCH, does anyone have suggestions on how to
>> achieve this?
>> 
>> Thanks
>> Steve
>> 
>> Development Manager
>> Vardus Internet Solutions (SA)
>> 
>> Tel: (+27) 21 670 9880
>> Fax: (+27) 21 674 4549
>> 
>> Email: [EMAIL PROTECTED]
>> Website: www.vardus.com
>> 
>
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Custom error pages

2001-06-05 Thread Steve Vosloo

Can I do that per website hosted on the box?



> -Original Message-
> From: Dylan Bromby [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 05, 2001 5:05 PM
> To: CF-Talk
> Subject: RE: Custom error pages
> 
> 
> you can specifiy your own custom error pages using IIS if you're 
> running it.
> 
> -Original Message-
> From: Steve Vosloo [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 05, 2001 7:51 AM
> To: CF-Talk
> Subject: Custom error pages
> 
> 
> I need to create 2 custom error pages for an application. One is for 404
> errors (page not found), and the other is for any other server 
> errors. Armed
> with CFERROR and CFTRY/CFCATCH, does anyone have suggestions on how to
> achieve this?
> 
> Thanks
> Steve
> 
> Development Manager
> Vardus Internet Solutions (SA)
> 
> Tel: (+27) 21 670 9880
> Fax: (+27) 21 674 4549
> 
> Email: [EMAIL PROTECTED]
> Website: www.vardus.com
>
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Custom error pages

2001-06-05 Thread Thomas Chiverton

> I need to create 2 custom error pages for an application. One 
> is for 404
> errors (page not found), and the other is for any other 
> server errors. 

You can use the 'error template' part of the CF administrator to catch all
CF errors.

You will need to use your Web servers capabilities to catch 404's and
display an appropriate page.

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Custom error pages

2001-06-05 Thread Kelly Matthews

There are a number of ways. The FIRST thing you want to do if you have
access is go CF administrator and then go to Settings.
Then scroll down and fill in the Exact Path to your Missing Template Handler
(for 404)
and your site-wide error handler (for errors).

Then you create the 2 pages you just pointed to and you have custom pages.
Now, there are a few things to keep in mind. 1. For 404 errors it will only
catch
..CFM 404 errors not .HTM so if you use IIS you need to edit their 404 page
to 
point to your new page.

Now what I do since I have my own server and MANY sites on it, is I create
the custom 404 and then on that 404 page I look at the SERVER_NAME which
normally contains the DOMAIN NAME, depending on the domain name found, 
I use  to then send them to a specific 404 page for that site.

Just some ideas.
Kelly

-Original Message-
From: Steve Vosloo [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 05, 2001 10:51 AM
To: CF-Talk
Subject: Custom error pages


I need to create 2 custom error pages for an application. One is for 404
errors (page not found), and the other is for any other server errors. Armed
with CFERROR and CFTRY/CFCATCH, does anyone have suggestions on how to
achieve this?

Thanks
Steve

Development Manager
Vardus Internet Solutions (SA)

Tel: (+27) 21 670 9880
Fax: (+27) 21 674 4549

Email: [EMAIL PROTECTED]
Website: www.vardus.com
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Custom error pages

2001-06-05 Thread Dylan Bromby

you can specifiy your own custom error pages using IIS if you're running it.

-Original Message-
From: Steve Vosloo [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 05, 2001 7:51 AM
To: CF-Talk
Subject: Custom error pages


I need to create 2 custom error pages for an application. One is for 404
errors (page not found), and the other is for any other server errors. Armed
with CFERROR and CFTRY/CFCATCH, does anyone have suggestions on how to
achieve this?

Thanks
Steve

Development Manager
Vardus Internet Solutions (SA)

Tel: (+27) 21 670 9880
Fax: (+27) 21 674 4549

Email: [EMAIL PROTECTED]
Website: www.vardus.com
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Custom error pages

2001-06-05 Thread Steve Vosloo

I need to create 2 custom error pages for an application. One is for 404
errors (page not found), and the other is for any other server errors. Armed
with CFERROR and CFTRY/CFCATCH, does anyone have suggestions on how to
achieve this?

Thanks
Steve

Development Manager
Vardus Internet Solutions (SA)

Tel: (+27) 21 670 9880
Fax: (+27) 21 674 4549

Email: [EMAIL PROTECTED]
Website: www.vardus.com


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists