Sun Java System Web Server 6.1 SP9 NSAPI Programmer's Guide

Service Examples

For an example of how Service directives work, consider what happens when the server receives a request for the URL D:/server_name/jos.html. In this case, all directives executed by the server are in the default object.


Service method="(GET|HEAD|POST)" type="*~magnus-internal/*" fn="send-file""

            

Here is an example that involves using another object:


NameTrans fn=assign-name name=personnel from=/personnel

            

<Object name="personnel">
Service fn="index-simple"
</Object>