Re: Custom Error Pages in Apache

This WebDNA talk-list message is from

2006


It keeps the original formatting.
numero = 67193
interpreted = N
texte = Hi The error page that is generated when on a missing tpl is stored in the ErrorMessages.db in the WebCatalogEngine folder. The correct entry is the one called TemplateNotFound and you can change it's value to anything you like. I use it with database driven sites that don't really exist. The page is requested and the code I placed the in the errormessages.db looks up the correct page info from another db and serves a dynamic page. Probably didn't explain that very well but it works well. Hope that helps. Cheers ======================================== Steve Craig - Asylum Interactive Ltd Tel +44 1330 860550 Fax +44 1330 860880 ======================================== http://www.asylumweb.com Email: steve@asylumweb.com Skype: s.craig - iChat: steve.craig ======================================== On 12 May 2006, at 22:26, Stephen Reiss wrote: > Somehow I have managed to never notice that Apache ignores .tpl > pages so completely that instead of displaying error pages (404s > and such) it just displays a blank page. I can't believe I have > been on an Apache server for years and never noticed (on the old > Web* server I don't think it acted this way, but then I had custom > error pages at the time). > > Sure... I could just start whipping up some custom error pages, but > before I go through the effort I have a question for the peanut > gallery: > > Does Apache serve custom error pages for bad .tpl urls? If not, is > there a place in WebCat per se to put said error pages? > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to digest@talk.smithmicro.com> > Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Custom Error Pages in Apache ( Steve Craig 2006)
  2. Custom Error Pages in Apache ( Stephen Reiss 2006)
Hi The error page that is generated when on a missing tpl is stored in the ErrorMessages.db in the WebCatalogEngine folder. The correct entry is the one called TemplateNotFound and you can change it's value to anything you like. I use it with database driven sites that don't really exist. The page is requested and the code I placed the in the errormessages.db looks up the correct page info from another db and serves a dynamic page. Probably didn't explain that very well but it works well. Hope that helps. Cheers ======================================== Steve Craig - Asylum Interactive Ltd Tel +44 1330 860550 Fax +44 1330 860880 ======================================== http://www.asylumweb.com Email: steve@asylumweb.com Skype: s.craig - iChat: steve.craig ======================================== On 12 May 2006, at 22:26, Stephen Reiss wrote: > Somehow I have managed to never notice that Apache ignores .tpl > pages so completely that instead of displaying error pages (404s > and such) it just displays a blank page. I can't believe I have > been on an Apache server for years and never noticed (on the old > Web* server I don't think it acted this way, but then I had custom > error pages at the time). > > Sure... I could just start whipping up some custom error pages, but > before I go through the effort I have a question for the peanut > gallery: > > Does Apache serve custom error pages for bad .tpl urls? If not, is > there a place in WebCat per se to put said error pages? > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to digest@talk.smithmicro.com> > Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Steve Craig

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

WebDNA CAPTCHA (2008) [ShowCart] and GET vs. POST (1997) StoreBuilder (retitled) (2002) Multiple SSL Keys (1998) Cookie and Domain Names (2005) How to Display text in empty fields (1997) Possible Bug in 2.0b15.acgi (1997) founditems (2000) Fwd: HTML encoding in URLs (1997) Weird Math and SV Bad News (1997) WebCommerce: Folder organization ? (1997) [ShowIf] a either fields are blank (1998) WebCatalog2 Feature Feedback (1996) browser info.txt and SSL (1997) send mail problem? (1997) [TaxableTotal] - not working with AOL and IE (1997) [platform] tag? (1998) Date Sorting (1997) Support ?? (1997) setting line item numbers (1998)