Bill,
I never implemented this. Did it ever work for you? I'm about to give it a try, but if it crashes witangod, I'll give it a second thought.

In the config, there is no defaulterrorfile designated. I was going to crib your page as you wrote it and then whip up my 404.tml file

RAD
On Sep 28, 2007, at 11:57 AM, William M Conlon wrote:

Hi Roland,

Did you get this working? I'm now trying to do something similar, and finding it's not straightforward.

I have my apache configure to return notfound.tml for 404 errors, which works. But if I have missing witango file, the error handler crashes my 5.0.1.065 witango server.

DEFAULTERRORFILE=/usr/local/witango/MiscFiles/error.tml

My error handler, error.tml, is meant to allow a custom notfound error for each domain:

<@IF EXPR="<@ERROR PART='number1'> = -3" >
<@INCLUDE file="<@WEBROOT>notfound.tml">
<@ELSE>

<@ERRORS>
      <B>Class: </B><@ERROR PART="class"><BR>
<B>Application File: </B><@ERROR PART="appfilepath"><@ERROR PART="appfilename"><BR>
      <B>Action: </B><@ERROR PART="postion"><BR>
      <B>Main Error Number: </B><@ERROR PART="number1"><BR>
      <B>Secondary Error Number: </B><@ERROR PART="number2"><BR>
      <B>Main Error Message: </B><@ERROR PART="message1"><BR>
      <B>Secondary Error Message: </B><@ERROR PART="message2"><BR>
      <HR>
</@ERRORS>
</@IF>


thanks

Bill


On Aug 20, 2007, at 5:25 PM, Roland Dumas wrote:

so get the error.html and insert this in it?



<@IF EXPR='<@ERROR PART="number1"> = -3' >
<@INCLUDE file="/errors/404.tml">
<@ELSE>

<@ERRORS>
        <B>Class: </B><@ERROR PART="class"><BR>
<B>Application File: </B><@ERROR PART="appfilepath"><@ERROR PART="appfilename"><BR>
        <B>Action: </B><@ERROR PART="postion"><BR>
        <B>Main Error Number: </B><@ERROR PART="number1"><BR>
        <B>Secondary Error Number: </B><@ERROR PART="number2"><BR>
        <B>Main Error Message: </B><@ERROR PART="message1"><BR>
        <B>Secondary Error Message: </B><@ERROR PART="message2"><BR>
        <HR>
</@ERRORS>


</@IF>

On Aug 20, 2007, at 4:35 PM, William M Conlon wrote:

Yes. that works on my witango5

Just evaluate the main error number to dispatch different pages.

On Aug 20, 2007, at 4:31 PM, William M Conlon wrote:

I think you just edit the DEFAULTERRORFILE.

Bill

On Aug 20, 2007, at 4:23 PM, Roland Dumas wrote:

no, because witango doesn't pick up the apache 404 file.

On Aug 20, 2007, at 4:21 PM, William M Conlon wrote:

You don't mean the apache 404:

      ErrorDocument 404 /notfound.html

Bill


On Aug 20, 2007, at 4:17 PM, Roland Dumas wrote:

How can I customize the witango file not found response? I'd like it to just grab a page in the web site.
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf


________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/ maillist.taf

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf


________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf


________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to