ns_serverrootproc - Callback for determining server root
If virtual hosting is enabled, this function can be used to set a callback for determining the server root directory based on the host header field of the current connection.
The command registered with ns_serverrootproc may have the host appended as the last arg before it is executed
ns_serverrootproc nstest::serverroot arg
proc nstest::serverroot {{host ""} args} {
if {$host ne "" } {
set path [eval file join testserverroot $host $args]
} else {
set path [eval file join testserverroot $args]
}
return $path
}