I'm using EE 2.9.0 and CE IMG 2.4.5. The primary site has no issues with CE image and the secondary site works great except the secondary site is writing the images to the default site images directory.
// main config.php
$config['ce_image_src_regex'] = array(
'^http://cps.domain.org/' => '/chroot/home/siterootfolder/domain.org/html/cps/',
'^http://devwww.domain.org/' => '/chroot/home/siterootfolder/domain.org/html/devwww/'
);
$config['ce_image_document_root'] = '/chroot/home/siterootfolder/domain.org/html/devwww/';
// root index.php on sub-site
$assign_to_config['global_vars'] = array(); // This array must be associative
$assign_to_config['global_vars']['ce_image_document_root'] = ' /chroot/home/siterootfolder/domain.org/html/cps/';
The file path for the images is outputting, however, being written to the default site. I tried every variation of the above with no avail. Another thing worth mentioning is that these sites are hosted at Nexcess. I tried all the documentation for re: Nexcess. Still no luck.