Wondrous blue collar TV quote,
The only thing in common about all the different ways to skin a cat, is
that the cats don't like any of them ;-)
Nathan Folkman wrote:
> Here's another twist on this that I *think* could work for you:
>
> ns_section "ns/server/server1/redirects"
> ns_param 404 "notfound.adp"
>
> notfound.adp:
>
> <%
> set string [ns_adp_parse -file <path>/notfound.inc]
>
> ns_return "404" "text/html" $string
> %>
>
> As an added bonus, the included "notfound.inc" file is ADP parsed so
> you can include dynamic logic. Give it a shot... ;-)
>
> - n
>
> [EMAIL PROTECTED] wrote:
>
>> On 2006.06.06, John Buckman <[EMAIL PROTECTED]> wrote:
>>
>>
>>> <%
>>> ns_returnunauthorized
>>> ns_adp_abort ok
>>> %>
>>>
>>
>> [...]
>>
>>
>>> I'd like to replace this message with my own page, which would have
>>> helpful information about how to join, if you lost your password,
>>> etc...
>>>
>>
>>
>> Here's an example of how to provide custom responses to HTTP request
>> statuses, based on the Annotated AOLserver Configuration Reference:
>>
>> #
>> # Internal redirects
>> #
>> ns_section "ns/server/${servername}/redirects"
>> ns_param 404 "/notfound.html" ;# Not Found error page
>> ns_param 500 "/servererror.html" ;# Server Error page
>>
>> You'd want to define an internal redirect for status "403 Forbidden"
>> with your own page. Note: this is an _internal_ redirect, not a
>> client-side redirect.
>>
>> However, there's a caveat/bug: AOLserver responds with "200 OK" which is
>> probably not the right behavior. See this for a possible workaround:
>>
>> Re: [AOLSERVER] ns_returnnotfound returns 200 OK
>> http://www.mail-archive.com/[email protected]/msg09663.html
>>
>> Also, I snuck "ns_internalredirect" which exposes the "internal
>> redirect" mechanism via a Tcl command. It's only in CVS, so if you want
>> to use it, you'll have to run with the latest code in CVS,
>> unfortunately.
>>
>> -- Dossy
>>
>>
>
>
>
> --
> AOLserver - http://www.aolserver.com/
>
> To Remove yourself from this list, simply send an email to
> <[EMAIL PROTECTED]> with the
> body of "SIGNOFF AOLSERVER" in the email message. You can leave the
> Subject: field of your email blank.
>
--
Patrick O'Leary
AOL Search
Phone: + 1 703 265 1000 ext 31097
Smash forehead on keyboard to continue...
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]>
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject:
field of your email blank.