[dev] Changing Document Root/webroot causes loading problems

Dilyan Palauzov Dilyan.Palauzov at aegee.org
Wed Dec 28 09:07:01 PST 2005


Nguyen Fasu wrote:
> I am trying to remove the /horde in the URL.
> 
> I pointed the DocumentRoot in apache httpd.conf to point directly to the 
> /horde directory
> 
> And I also changed the webroot in /horde/config/registry.php to ''
> 
> All of this works, but the loading of the graphics in the left sidebar menu 
> is having problems.  It takes a very long time for it to load those graphics 
> for some reason.  Other pages such as the Options page also is slow to load.
> 
> Any ideas on how to accomplish this without the loading problems?
> 
> Many thanks.
I had similar problem, and what solved it was correction in 
horde/cobfig/registry.php (I don't knwo why exactly this worked, but it 
is fine now for me).
	Greetings,
		Dilian
[ .... ]
// this.
if (isset($_SERVER['PHP_SELF'])) {
     $webroot = strstr(dirname(__FILE__), '/' . 
array_shift(preg_split(';/;', $_SERVER['PHP_SELF'], 2, 
PREG_SPLIT_NO_EMPTY)));
     if ($webroot !== false) {
         $webroot = preg_replace(';/config$;', '', $webroot);
     } else {
         $webroot = '';
     }
} else {
     $webroot = '/';
}

 
 

$this->applications['horde'] = array(
     'fileroot' => dirname(__FILE__) . '/..',
     'webroot' => $webroot,
     'initial_page' => 'login.php',
     'name' => _("Home"),
     'status' => 'active',
     'templates' => dirname(__FILE__) . '/../templates',
     'provides' => 'horde'
);
 
 



More information about the dev mailing list