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:

Help! WebCat2 bug (1997) SEARCH DATE RANGE (2000) code to phantom spacing (2001) Location of Browser Info.txt file (1997) Re[2]: Encrypted links ... (2000) Showing once on a founditems (1997) Serving images from databases (1998) Download URL & access on the fly ? (1997) OK, here goes... (1997) WebCatalog stalls (1998) Cannot calculate prices (1997) WebCat2b13MacPlugIn - More limits on [include] (1997) Append probs, please help (2001) Latin Characters (1998) About WebDNA [well, and so the story ended] (2007) WebCat2: Master Counter snippet (1997) WC2.0 Memory Requirements (1997) WebCat/PDF Integration Time Est (2000) OT: Poll Results (2002) Erotic Sites (1997)