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: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
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
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: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
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
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
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
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
That is good to know. I very rarely use charting, but if it ever breaks somewhere I'll know where to look g. -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
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
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: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
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/ ~| 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
RE: Custom Error Pages
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
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
FW: Custom error pages
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?
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]
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?
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?
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?
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]
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]
user friendly error pages in Fusebox
Right I need to develop some friendly error pages to appear in my applications instead of the ones you get for SQL and Fusebox errors within Fusebox applications - these are the Error occured whilst processing reports pages. IS there anyway of making them more user friendly and incorporate them into the look and feel of your website? Thanks in advance Dave [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: user friendly error pages in Fusebox
Look at cferror -Original Message- From: David Ashworth [mailto:[EMAIL PROTECTED] Sent: woensdag 17 maart 2004 11:11 To: CF-Talk Subject: user friendly error pages in Fusebox Right I need to develop some friendly error pages to appear in my applications instead of the ones you get for SQL and Fusebox errors within Fusebox applications - these are the Error occured whilst processing reports pages. IS there anyway of making them more user friendly and incorporate them into the look and feel of your website? Thanks in advance Dave [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: user friendly error pages in Fusebox
If you are using Fusebox 4.0, then i guess there is a exception handling plugin available on fusebox.org. Qasim -Original Message- From: David Ashworth [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 17, 2004 5:11 AM To: CF-Talk Subject: user friendly error pages in Fusebox Right I need to develop some friendly error pages to appear in my applications instead of the ones you get for SQL and Fusebox errors within Fusebox applications - these are the Error occured whilst processing reports pages. IS there anyway of making them more user friendly and incorporate them into the look and feel of your website? Thanks in advance Dave _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: user friendly error pages in Fusebox
The plugin from the fusebox.org site does not work with the latest version of the core files. My suggestion (which is what I did) was to write my own. Rethrow the exceptions and catch them in the fuseaction exception phase. There you can wrap your nice layout around them, etc... Contact me off list if you want some additional information on this.. Mike I need to develop some friendly error pages to appear in my applications instead of the ones you get for SQL and Fusebox errors within Fusebox applications - these are the Error occured whilst processing reports pages. IS there anyway of making them more user friendly and incorporate them into the look and feel of your website? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
CFHTTP and Custom 404 error pages
I posted this to the Macromedia forums but thought I'd try here as well. I need CFHTTP to return the actual content of a 404 error page, but I can't figure out how. It seems like CFHTTP assumes that you don't care what the content of the page is if it's a 404 and puts connection failure into CFHTTP.FileContent Any ideas? Rick Root ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com
Re: CF Error pages and redirects for 404 pages
Thanks for the idea! I forgot about taking the back door to solve this problem, and this actually kills 2 (or more) birds with 1 stone since I can use this as a redirect lookup for all of the apps/domains hosted on this server. If anyone else needs something like this, here is my VERY alpha code, ugliness and all. It's pretty rough and just uses an Access database for the lookups; final version will be code-tweaked and will use Oracle. New 404's are added automatically, and the idea would be that an administrator goes through periodically (via an admin interface to the database), figures out which 404's are because of fatfingering/misspellings, and which ones are looking for lost pages, and from there a forwarding URL can be added to complete the redirect: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN html head titleDatabased Redirects/title /head body !--- Initialize tmp.* variables --- cfparam name=tmp.query_string type=string default= cfparam name=tmp.badURL type=string default= !--- Set the tmp.query_string value --- cfset tmp.query_string = ? #CGI.query_string# !--- Set the tmp.badURL value --- cfset tmp.badURL = http://; #CGI.server_name# #CGI.script_name# !--- If the value of tmp.query_string 1, create the new tmp.badURL with the query string --- cfif len(trim(tmp.query_string)) GT 1cfset tmp.badURL = #tmp.badURL# #tmp.query_string#/cfif !--- Check to see if the bad URL is in the database --- cfquery name=checkURL datasource=c:\inetpub\wwwroot\redirect\redirect.mdb dbtype=OLEDB provider=Microsoft.Jet.OLEDB.4.0 providerdsn=c:\inetpub\wwwroot\redirect\redirect.mdb username=admin password= SELECT badURL, goodURL FROM tblRedirect WHERE tblRedirect.badURL LIKE '#tmp.badURL#' /cfquery cfif checkURL.recordcount GT 0 !--- If this is not the first time the bad URL is encountered, it will be in the database. --- !--- *** debug *** cfoutput query=checkURL#badURL#, #goodURL#/cfoutputhr --- !--- This works, and changes the URL. Make sure there is a value set for goodURL, otherwise it will loop. --- cfif len(trim(checkurl.goodurl)) GT 0 cfoutputmeta http-equiv=refresh content=0; url=#checkURL.goodURL#/cfoutput /cfif cfelse !--- If this is the first time the bad URL is encountered, save it to the database. --- cfquery name=addBadURL datasource=c:\inetpub\wwwroot\redirect\redirect.mdb dbtype=OLEDB provider=Microsoft.Jet.OLEDB.4.0 providerdsn=c:\inetpub\wwwroot\redirect\redirect.mdb username=admin password= INSERT INTO tblRedirect(badURL,http_referer,remote_addr) Values('#tmp.BadURL#', '#CGI.http_referer#', '#CGI.remote_addr#') /cfquery /cfif h1File not found/h1 !--- *** debug *** cfoutput#checkURL.recordCount#/cfoutput 404 page. cfoutput#tmp.badURL#/cfoutput hr cfoutputhttp://#CGI.server_name##CGI.script_name#/cfoutput *** /debug *** --- /body /html - Original Message - From: Matt Robertson [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, May 20, 2002 12:36 PM Subject: RE: CF Error pages and redirects for 404 pages Can you put in a site-wide error handler in CF admin? If so that would let you code in pretty much anything you want. I just reroute to the current domain's index.cfm, but there's no reason you couldn't do something more complex/useful. --Matt Robertson-- MSB Designs, Inc. http://mysecretbase.com -Original Message- From: Pete Ruckelshaus [mailto:[EMAIL PROTECTED]] Sent: Monday, May 20, 2002 8:43 AM To: CF-Talk Subject: CF Error pages and redirects for 404 pages Hi, My challenge of the week is to provide automated forwarding services to URL's that return a File not found 404 error. This would act as a sort of switchboard that, whenever a 404 error was encountered, a query would be run against a database for the requested URL, and if there were a new URL value for that originally requested page, the user would be redirected there without ever seeing the actual 404 page. Now, in theory, this is how it would work: * Create a database table that holds the values for old URL's and the good URL's that the old URL's should redirect to * Create a custom 404 page that executes a query of this table each time it's (the custom 404 page) executed. The logic would be something like this... - run query, querying for the bad URL value and returning the good URL value - If a value is returned, + do a cflocation to the new URL - If a value is not returned + display the 404 page So, here's the first problem I'm running into. I have the following set in my application.cfm: cfapplication name=redirect_test cferror type=request template=404.cfm Yet, 404.cfm is not displayed; the standard IIS error page is displayed. Also, it's documented that request error pages can't have any CF code in them. Am I doing something wrong? Am I missing something? Is there any way to accomplish what I need to do? Thanks Pete
CF Error pages and redirects for 404 pages
Hi, My challenge of the week is to provide automated forwarding services to URL's that return a File not found 404 error. This would act as a sort of switchboard that, whenever a 404 error was encountered, a query would be run against a database for the requested URL, and if there were a new URL value for that originally requested page, the user would be redirected there without ever seeing the actual 404 page. Now, in theory, this is how it would work: * Create a database table that holds the values for old URL's and the good URL's that the old URL's should redirect to * Create a custom 404 page that executes a query of this table each time it's (the custom 404 page) executed. The logic would be something like this... - run query, querying for the bad URL value and returning the good URL value - If a value is returned, + do a cflocation to the new URL - If a value is not returned + display the 404 page So, here's the first problem I'm running into. I have the following set in my application.cfm: cfapplication name=redirect_test cferror type=request template=404.cfm Yet, 404.cfm is not displayed; the standard IIS error page is displayed. Also, it's documented that request error pages can't have any CF code in them. Am I doing something wrong? Am I missing something? Is there any way to accomplish what I need to do? Thanks Pete __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: CF Error pages and redirects for 404 pages
Can you put in a site-wide error handler in CF admin? If so that would let you code in pretty much anything you want. I just reroute to the current domain's index.cfm, but there's no reason you couldn't do something more complex/useful. --Matt Robertson-- MSB Designs, Inc. http://mysecretbase.com -Original Message- From: Pete Ruckelshaus [mailto:[EMAIL PROTECTED]] Sent: Monday, May 20, 2002 8:43 AM To: CF-Talk Subject: CF Error pages and redirects for 404 pages Hi, My challenge of the week is to provide automated forwarding services to URL's that return a File not found 404 error. This would act as a sort of switchboard that, whenever a 404 error was encountered, a query would be run against a database for the requested URL, and if there were a new URL value for that originally requested page, the user would be redirected there without ever seeing the actual 404 page. Now, in theory, this is how it would work: * Create a database table that holds the values for old URL's and the good URL's that the old URL's should redirect to * Create a custom 404 page that executes a query of this table each time it's (the custom 404 page) executed. The logic would be something like this... - run query, querying for the bad URL value and returning the good URL value - If a value is returned, + do a cflocation to the new URL - If a value is not returned + display the 404 page So, here's the first problem I'm running into. I have the following set in my application.cfm: cfapplication name=redirect_test cferror type=request template=404.cfm Yet, 404.cfm is not displayed; the standard IIS error page is displayed. Also, it's documented that request error pages can't have any CF code in them. Am I doing something wrong? Am I missing something? Is there any way to accomplish what I need to do? Thanks Pete __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Hiding Error Pages
Hi folks, Now that I've got CF Server 5 running correctly on my Linux box, I had a quick question. What's the best way to hide the Error template pages that I have setup? Currently, any user could guess my Error page names, and because I have my ErrorException page e-mail myself and a few other administrators when the page is called, this could lead to a bunch of false alerts. Is there any variable I could perhaps check to see if it's CF Server calling the Error page as opposed to a regular user, or is there some way I can specify all Error* pages to not be directly viewable? I was thinking of just doing this with the help of an .htaccess file, but I was hoping there was something a bit more elegant, as I assume this sort of concern has come up before. Thanks a lot, Emmanuel J.M. Crouvisier ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Hiding Error Pages
you could include the error pages using a server mapping. John McKown, President Delaware.Net, Inc. -Original Message- From: Emmanuel Crouvisier [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 02, 2001 2:31 PM To: CF-Talk Subject: Hiding Error Pages Hi folks, Now that I've got CF Server 5 running correctly on my Linux box, I had a quick question. What's the best way to hide the Error template pages that I have setup? Currently, any user could guess my Error page names, and because I have my ErrorException page e-mail myself and a few other administrators when the page is called, this could lead to a bunch of false alerts. Is there any variable I could perhaps check to see if it's CF Server calling the Error page as opposed to a regular user, or is there some way I can specify all Error* pages to not be directly viewable? I was thinking of just doing this with the help of an .htaccess file, but I was hoping there was something a bit more elegant, as I assume this sort of concern has come up before. Thanks a lot, Emmanuel J.M. Crouvisier ~~ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Custom error pages
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
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
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
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 CFLOCATION 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
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
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
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
Error pages
I have just written my first web app with cold fusion and I'm wondering what standard practice is with cferror This is my first go around so I won't be using cfcatch/cftry (unless I really should) but I'm wondering how many of you have the error page e-mail you with information? If so, what information do you have it e-mail to you? Is there a way to have it capture the original error message, the one that appears before the pretty new page, and have that e-mailed off to the admin? Thanks for your time Jason Stevens CF-developer in training ~~ 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: Error pages
Since you are just starting out I would recommend you use cftry/cfcatch. It gives you so much better control. Just my opinion. - Original Message - From: Stevens, Jason [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, May 28, 2001 4:39 PM Subject: Error pages I have just written my first web app with cold fusion and I'm wondering what standard practice is with cferror This is my first go around so I won't be using cfcatch/cftry (unless I really should) but I'm wondering how many of you have the error page e-mail you with information? If so, what information do you have it e-mail to you? Is there a way to have it capture the original error message, the one that appears before the pretty new page, and have that e-mailed off to the admin? Thanks for your time Jason Stevens CF-developer in training ~~ 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: Error pages
sure, I can do that. When your app has difficulties, do you have it mail the admin with details? -Original Message- From: Don Vawter [mailto:[EMAIL PROTECTED]] Sent: Monday, May 28, 2001 3:47 PM To: CF-Talk Subject: Re: Error pages Since you are just starting out I would recommend you use cftry/cfcatch. It gives you so much better control. Just my opinion. - Original Message - From: Stevens, Jason [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, May 28, 2001 4:39 PM Subject: Error pages I have just written my first web app with cold fusion and I'm wondering what standard practice is with cferror This is my first go around so I won't be using cfcatch/cftry (unless I really should) but I'm wondering how many of you have the error page e-mail you with information? If so, what information do you have it e-mail to you? Is there a way to have it capture the original error message, the one that appears before the pretty new page, and have that e-mailed off to the admin? Thanks for your time Jason Stevens CF-developer in training ~~ 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: Error pages
depends on severity. usually log it in db and page somebody if it is bad enough - Original Message - From: Stevens, Jason [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, May 28, 2001 7:49 PM Subject: RE: Error pages sure, I can do that. When your app has difficulties, do you have it mail the admin with details? -Original Message- From: Don Vawter [mailto:[EMAIL PROTECTED]] Sent: Monday, May 28, 2001 3:47 PM To: CF-Talk Subject: Re: Error pages Since you are just starting out I would recommend you use cftry/cfcatch. It gives you so much better control. Just my opinion. - Original Message - From: Stevens, Jason [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, May 28, 2001 4:39 PM Subject: Error pages I have just written my first web app with cold fusion and I'm wondering what standard practice is with cferror This is my first go around so I won't be using cfcatch/cftry (unless I really should) but I'm wondering how many of you have the error page e-mail you with information? If so, what information do you have it e-mail to you? Is there a way to have it capture the original error message, the one that appears before the pretty new page, and have that e-mailed off to the admin? Thanks for your time Jason Stevens CF-developer in training ~~ 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: Error pages
This is my first go around so I won't be using cfcatch/cftry (unless I really should) You *always* should, every time you think you *might* run into *any* type of error .. and even when you don't think you will, at all. :) but I'm wondering how many of you have the error page e-mail you with information? My take is that the app should always E-mail/contact *someone* .. it means that the user has done something that no one ever expected and someone needs to do something about it. If so, what information do you have it e-mail to you? All info that the developer needs to fix the prob and that the user should never see .. directory path, file name, database error, etc. Is there a way to have it capture the original error message, the one that appears before the pretty new page, and have that e-mailed off to the admin? Look up the help doc on cfcatch/cftry. The only pretty page that the user needs to see is that an error has occured and that the 'admins' will fix it soon. Anything else should provide contact info to follow-up, if needed. You should be able to combine both functions into one page, so that the app displays both the error to the user and also E-mails the problem to the admin(s). Todd I have just written my first web app with cold fusion and I'm wondering what standard practice is with cferror This is my first go around so I won't be using cfcatch/cftry (unless I really should) but I'm wondering how many of you have the error page e-mail you with information? If so, what information do you have it e-mail to you? Is there a way to have it capture the original error message, the one that appears before the pretty new page, and have that e-mailed off to the admin? Thanks for your time Jason Stevens CF-developer in training ~~ 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
Error Pages
In CF Administrator there is a field for the error page to run when a template is missing. Is this ANY missing template, i.e. hdsfhjdg.cfm, or just a missing include? I've tried it, and it does not seem to work. Does it maybe relate to how you refer to the template. Is it by url, path, what? Regards, David Cummins ~~ 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: Automated Error pages
I am trying to work on making an automated error page. Thing is stupid cferror doesn't let you use any tags in your error page. So what I have to do is mailto:[EMAIL PROTECTED]?subject=errorbody=errortext only thing is once it hits some text in there it craps out on the body part. Has anyone done something like this? CFERROR isn't "stupid" for not letting you use any tags. Think about it for a minute. What if CFERROR let you use tags? If you used the same tag which caused the error in the first place, what would happen? There are several approaches for error handling in CF, and you're free to use some or all of them. 1. The CFERROR tag. There are several ways that CFERROR can be used. The most common way is to use TYPE="REQUEST", and send the user to a harmless error message. You can extend this approach using JavaScript; for more information, take a look at this: http://alive.allaire.com/Bagdhad/CatalogCourseDetail.cfm?CourseID=36 In addition, CFERROR now has two new ways it can be used: TYPE="EXCEPTION" and TYPE="MONITOR". These are both new to 4.5. The exception type looks interesting; you can use tags in the error page used by that type. 2. CFTRY/CFCATCH If you want to respond to a specific problem condition within a specific block of code, this is the best approach. You can use any CFML code you want inside your CFCATCH block. 3. The site-wide error handler (new to CF 4.5) You can specify a default page for any errors. You can use all of these together; you can use a site-wide error handler, override that with a CFERROR tag in a specific application, and override that with an exception handler. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Automated Error pages
I am trying to work on making an automated error page. Thing is stupid cferror doesn't let you use any tags in your error page. So what I have to do is mailto:[EMAIL PROTECTED]?subject=errorbody=errortext only thing is once it hits some text in there it craps out on the body part. Has anyone done something like this? Robert Everland III Network Administrator Orlando.com -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: Automated Error pages
I am trying to work on making an automated error page. Thing is stupid cferror doesn't let you use any tags in your error page. So what I have to do is mailto:[EMAIL PROTECTED]?subject=errorbody=errortext only thing is once it hits some text in there it craps out on the body part. Has anyone done something like this? Robert, I would highly recommend you look into CF's exception handling capabilities (cftry, cfcatch). It's a much more powerful error trapping mechanism than cferror. Ben Forta covers the topic really well in the Web Application Construction Kit. - Sean ~ Sean Daniels Manager of Engineering DealStream, Inc. [EMAIL PROTECTED] ~ tel: 207.439.6030 cel: 978.764.0799 Fax: 240.269.6319 -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Re: Automated Error pages
I haven't done this, but I know you can use cfoutput. Couldn't you create a form with hidden fields containing your error message and submit it automatically using javascript? Larry [EMAIL PROTECTED] 03/30/00 02:02PM I am trying to work on making an automated error page. Thing is stupid cferror doesn't let you use any tags in your error page. So what I have to do is mailto:[EMAIL PROTECTED]?subject=errorbody=errortext only thing is once it hits some text in there it craps out on the body part. Has anyone done something like this? -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebarRstsbodyRsts/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: Automated Error pages
I know I can do that, but that doesn't give me the error. The big thing I want is for me to see the error. That way I can fix them. Robert Everland III Network Administrator Orlando.com -Original Message- From: Sean Daniels [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 30, 2000 4:29 PM To: [EMAIL PROTECTED] Subject: RE: Automated Error pages I am trying to work on making an automated error page. Thing is stupid cferror doesn't let you use any tags in your error page. So what I have to do is mailto:[EMAIL PROTECTED]?subject=errorbody=errortext only thing is once it hits some text in there it craps out on the body part. Has anyone done something like this? Robert, I would highly recommend you look into CF's exception handling capabilities (cftry, cfcatch). It's a much more powerful error trapping mechanism than cferror. Ben Forta covers the topic really well in the Web Application Construction Kit. - Sean ~ Sean Daniels Manager of Engineering DealStream, Inc. [EMAIL PROTECTED] ~ tel: 207.439.6030 cel: 978.764.0799 Fax: 240.269.6319 -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.