It should be something like this:
ns_section "ns/server/myserver" ns_param pageroot /web/myserver/www
I have had the same error once and it was caused by a messed up pageroot setting.