[bugs] [Bug 992] Changed - Horde::url() use wrong server name from register.php(.dist)

bugs@bugs.horde.org bugs@bugs.horde.org
Sun, 7 Jul 2002 00:23:39 -0300


http://bugs.horde.org/show_bug.cgi?id=992

*** shadow/992	Fri Jul  5 11:55:41 2002
--- shadow/992.tmp.28868	Sun Jul  7 00:23:39 2002
***************
*** 3,9 ****
  Version: 2.1 Unstable
  Platform: PHP Code
  OS/Version: All
! Status: CLOSED   
  Resolution: INVALID
  Severity: normal
  Priority: P2
--- 3,9 ----
  Version: 2.1 Unstable
  Platform: PHP Code
  OS/Version: All
! Status: REOPENED   
  Resolution: INVALID
  Severity: normal
  Priority: P2
***************
*** 47,49 ****
--- 47,60 ----
  
  ------- Additional Comments From chuck@horde.org  07/05/02 11:55 -------
  The correct fix is to turn off UseCanonicalName in Apache.
+ 
+ ------- Additional Comments From neat@263.net  07/07/02 00:23 -------
+ you can not leave the fix into the apache, and should not rely on apache's 
+ behaviors, we should use the HTTP_HOST generated by browser to get the exact 
+ server name which is same with that one in your browser's location bar.
+ in apache 1.3.*, the default config is UseCanonicalName On, so in most cases, 
+ this will be a bug. since UseCanonicalName Off means use HTTP_HOST to get the 
+ SERVER_NAME, and we indeed need to get the correct result by HTTP_HOST, why not 
+ code it? 
+ when users need UseCanonicalName set On for some other cases, what should they 
+ do? we need a independent solid code.