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
--
Dossy Shiobara | [EMAIL PROTECTED] | http://dossy.org/
Panoptic Computer Network | http://panoptic.com/
"He realized the fastest way to change is to laugh at your own
folly -- then you can let go and quickly move on." (p. 70)
--
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.