On 2006.03.24, Nis Jorgensen <[EMAIL PROTECTED]> wrote:
> I have these lines in my config.tcl
>
> ns_section ns/server/${server}/redirects
> ns_param 404 "global/file-not-found.html"
>
> Apparently this causes ns_returnnotfound to return the indicated
> document with a "200 OK" response.
>
> Is this the intended behavior? Is there a way to make AOLserver do the
> "obvious" right thing, (returning the document with a 404 status)?
While this is the current "expected" behavior, I think it violates POLS
(principle of least surprise) for many folks, so it's being considered a
bug.
In the meantime, you could change your 404 handler page to be an ADP
parsed page, and inside it, explicitly return the status code you want:
<%
ns_return 404 text/html { ... your html page here ... }
%>
-- 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.