Forum .LRN Q&A: File not found page in 3.x

Collapse
Posted by Nick Grossman on
This may be a silly question, but how do you customize the "File not found" page in OACS 3.x? I figured out how to do it in 5, but I'm not sure if there's a similar setup in 3. Any help is greatly appreciated.
Collapse
Posted by Nick Grossman on
oops - my mistake for posting this in .LRN; meant it for OACS Q&A.
Collapse
Posted by Stan Kaufman on
In your config file nsd.tcl (or whatever you've named it), the 404 file is set thus:

ns_section "ns/server/${server}"
# stuff excised
ns_param NotFoundResponse "/global/file-not-found.html"

and then you simply modify

/www/global/file-not-found.html

Note you can obviously use a tcl file there if you want to generate a non-static page. You need to have the ns_param file name match what's in the /www/global/ directory, of course.