ns_serverpath - Returns absolute path to current virtual server home directory
This is virtual hosting aware command that returns absolute path to the server home for current virtual server context
Returns the absolute path to current virtual server home directory followed by the optional path segments. Similar to ns_pagepath.
The optional -host parameter can be used to return the path for a certain virtual host. If not specified the value for the host is taken from the host header field of the current request.
% ns_serverpath /usr/local/ns % ns_serverpath foo bar /usr/local/ns/foo/bar