[Bug 884] New - Bug in registry.php configuration file
bugs@bugs.horde.org
bugs@bugs.horde.org
Mon, 25 Feb 2002 07:25:36 -0400
http://bugs.horde.org/show_bug.cgi?id=884
*** shadow/884 Mon Feb 25 07:25:36 2002
--- shadow/884.tmp.17194 Mon Feb 25 07:25:36 2002
***************
*** 0 ****
--- 1,45 ----
+ Bug#: 884
+ Product: Horde
+ Version: 2.0 Stable
+ Platform: Mozilla 5.x
+ OS/Version: Linux
+ Status: NEW
+ Resolution:
+ Severity: major
+ Priority: P2
+ Component: Core
+ Area: BUILD
+ AssignedTo: chuck@horde.org
+ ReportedBy: ricardo@novembar.com
+ URL:
+ Summary: Bug in registry.php configuration file
+
+ There is a bug in the registry.php configuration file.
+
+ When configuring the Horde application the code is:
+
+ $this->applications['horde'] = array(
+ 'fileroot' => dirname(__FILE__) . '/..',
+ 'webroot' => '',
+ 'initial_page' => 'login.php',
+ 'icon' => '/graphics/home.gif',
+ 'name' => _("Home"),
+ 'allow_guests' => true,
+ 'show' => true,
+ 'templates' => dirname(__FILE__) . '/../templates',
+ 'cookie_domain' => $GLOBALS['HTTP_SERVER_VARS']['SERVER_NAME'],
+ 'cookie_path' => '/horde',
+ 'server_name' => $GLOBALS['HTTP_SERVER_VARS']['SERVER_NAME'],
+ 'server_port' => $GLOBALS['HTTP_SERVER_VARS']['SERVER_PORT']
+ );
+
+
+ The property 'server_name' refers to HTTP var 'SERVER_NAME'. This is wrong,
+ it must refer to HTTP var 'HTTP_HOST' to properly get the http server name
+ when the server is providing service with a name other than lan host name
+ (i.e. when accesing through a VirtualHost name).
+
+ The property 'cookie_domain' has the same problem.
+
+
+