And don't forget the closing bracket after pageroot, like I did! ;)

> Instead of putting notfound.html as your parameter, you could use
> notfound.tcl and create a new tcl script with this line:
>
> ns_returnfile 404 text/html [ns_server pageroot/global/notfound.html
>
> Save this script as /global/notfound.tcl
>
> Good luck!
> Jim
>
>
> >
> > I would like my server to return a custom html page (or even better a
> > tcl/adp pair) when a url is not found, with an http status code of
> > 404.
...


--
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.

Reply via email to