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

vs_get_doc_root

The vs_get_doc_root function finds the document root for a virtual server. The returned string is the full operating system path to the document root.

The caller should FREE the returned string when done with it.

Syntax

char* vs_get_doc_root(const VirtualServer* vs);

Returns

A pointer to a string representing the full operating system path to the document root. It is the caller's responsibility to FREE this string.

Parameters

const VirtualServer* vs represents the virtual server for which to find the document root.