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.
char* vs_get_doc_root(const VirtualServer* vs);
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.
const VirtualServer* vs represents the virtual server for which to find the document root.