Sun Java System Web Server 7.0 Update 3 NSAPI Developer's Guide

Installing the NameTrans Example

To install the function on the Web Server, add the following Init directive to magnus.conf to load the compiled function:

Init fn=load-modules 

Inside the default object in obj.conf, add the following NameTrans directive:

NameTrans fn=explicit-pathinfo 

This NameTrans directive should appear before other NameTrans directives in the default object.

The source code for this example is in the ntrans.c file in the install-dir/smaples/nsapi/directory.