// if appHost is null, we use the site name for the current application
        string IServerConfig.MapPath(IApplicationHost appHost, VirtualPath path)
        {
            string siteName     = (appHost == null) ? CurrentAppSiteName : appHost.GetSiteName();
            string physicalPath = _nativeConfig.MapPathDirect(siteName, path);

            if (FileUtil.IsSuspiciousPhysicalPath(physicalPath))
            {
                throw new InvalidOperationException(SR.GetString(SR.Cannot_map_path, path.VirtualPathString));
            }
            return(physicalPath);
        }