6.0.0-alpha10
5/15/25

[#11] wrong usage SERVER_NAME
Summary wrong usage SERVER_NAME
Queue Horde Framework Packages
Type Bug
State Not A Bug
Priority 2. Medium
Owners
Requester max (at) tcen (dot) ru
Created 03/17/2004 (7729 days ago)
Due
Updated 03/18/2004 (7728 days ago)
Assigned
Resolved 03/18/2004 (7728 days ago)
Milestone
Patch No

History
03/18/2004 10:33:43 AM Jan Schneider Comment #2
State ⇒ Not A Bug
Reply to this comment
registry.php is a *configuration* file, so you *have* to change it to 
your needs.



Beside that, $_SERVER['SERVER_NAME'] works for more people than 
$_SERVER['HTTP_HOST'].
03/17/2004 01:41:58 PM max (at) tcen (dot) ru Comment #1
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Reply to this comment
I use horde2/imp3 packages from debian unstable  (horde 2.2.3, imp 3.2.2)



My webmail use https protocol and after login url switch from name to ip

ie https://secure.mydomain.org:9999/hotde2/imp... ->

https://222.x.x.x:9999/horde2/imp



But I pefer urls with names

this patch fix this issue:

--- config/registry.php.old     2004-03-17 15:06:01.000000000 +0300

+++ config/registry.php 2004-03-17 15:10:59.000000000 +0300

@@ -86,13 +86,13 @@

      'allow_guests' => true,

      'status' => 'active',

      'templates' => '/usr/share/horde2/templates',

-    'cookie_domain' => $_SERVER['SERVER_NAME'],

+    'cookie_domain' => $_SERVER['HTTP_HOST'],

      // ** If IE will be used to access Horde modules, you should read

      //    this discussion about the cookie_path setting (discussing issues

      //    with IE's Content Advisor):

      //     
http://lists.horde.org/archives/imp/Week-of-Mon-20030113/029149.html

      'cookie_path' => '/horde2',

-    'server_name' => $_SERVER['SERVER_NAME'],

+    'server_name' => $_SERVER['HTTP_HOST'],

      'server_port' => $_SERVER['SERVER_PORT']

  );



Maybe  i'm wrong but work for me (c) :)






Saved Queries