Find web server root path in ColdFusion

This finds the root path that can be accessed from anywhere in the application folder.

<cfset replaceMe = replace(cgi.SCRIPT_NAME,'/','\','all')>
<Cfset webserverRoot = replace(cgi.CF_TEMPLATE_PATH,replaceMe,'') />
<cfdump var="#webserverRoot#">