Documentation
Configuration / filesystem.local.wwwroot
This option should contain the local file system path to the web servers wwwroot.
It will automatically detect the wwwroot by default but some very specific server setups might need this one to be defined.
The wwwroot should be the point http://www.site.com/ points to in windows this is normally c:/Inetpub/wwwroot
or in Linux it might be /var/www
this depends on the server setup.
This setting is used to map file paths such as c:/Inetpub/wwwroot/somedir/somefile.gif
into URLs such as http://www.mysite.com/somedir/somefile.gif
it's doing this by taking the path and removing the wwwroot part.
So for example if the preview.wwwroot is configured to c:/Inetpub/wwwroot
it will then take a path like this c:/Inetpub/wwwroot/somedir/somefile.gif
and convert it by removing the first part and the result would be /somedir/somefile.gif
it will then use other options such as filesystem.local.urlprefix
and filesystem.local.urlsuffix
to build a complete URL such as http://www.mysite.com/mydir/myfile.gif?somesuffix=x
If you are using virtual directories, you must configure this option to the point where the files for the virtual directory is stored. For example d:/myroot/mydir if the virtual directory points to d:/myroot/mydir
If you are using an Apache Alias the value for this option is the alias file system location
Advanced WWWROOT configuration
If you are using multiple rootpaths and need multiple wwwroot options, you can set this instead of the standard options.
$moxieManagerConfig['filesystem.rootpath'] = "c:/inetpub/wwwroot/files;d:/inetpub/public/files";
$moxieManagerConfig['filesystem.local.wwwroot'] = array(
"c:/inetpub/wwwroot" => array(
"urlprefix" => "http://www.domain.com/",
"urlsuffix" => "?suffix"
),
"d:/inetpub/public" => array(
"urlprefix" => "http://www.otherdomain.com/",
"urlsuffix" => "?suffix"
)
);
<add key="filesystem.local.wwwroot">
<root name="root1" path="c:/inetpub/wwwroot" urlprefix="http://www.domain.com/" urlsuffix="?suffix" />
<root name="root2" path="d:/inetpub/public" urlprefix="http://www.otherdomain.com/" urlsuffix="?suffix" />
</add>
Use this only in really special cases.