[LON-CAPA-cvs] cvs: loncom /auth lonlogin.pm

albertel lon-capa-cvs@mail.lon-capa.org
Mon, 24 Jul 2006 17:25:49 -0000


albertel		Mon Jul 24 13:25:49 2006 EDT

  Modified files:              
    /loncom/auth	lonlogin.pm 
  Log:
  - make the switch the the official server name explicit
  
  
Index: loncom/auth/lonlogin.pm
diff -u loncom/auth/lonlogin.pm:1.75 loncom/auth/lonlogin.pm:1.76
--- loncom/auth/lonlogin.pm:1.75	Tue May 30 08:45:24 2006
+++ loncom/auth/lonlogin.pm	Mon Jul 24 13:25:48 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Login Screen
 #
-# $Id: lonlogin.pm,v 1.75 2006/05/30 12:45:24 www Exp $
+# $Id: lonlogin.pm,v 1.76 2006/07/24 17:25:48 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -145,6 +145,7 @@
     my $include = $r->dir_config('lonIncludes');
     my $expire  = $r->dir_config('lonExpire');
     my $version = $r->dir_config('lonVersion');
+    my $host_name = $Apache::lonnet::hostname{$lonhost};
 
 # --------------------------------------------- Default values for login fields
 
@@ -162,7 +163,7 @@
     my $userloadpercent=&Apache::lonnet::userload();
 
 # ------------------------------------------------------- Do the load balancing
-    my $otherserver='http://'.$ENV{'SERVER_NAME'};
+    my $otherserver='http://'.$host_name;
     my $firsturl=
     ($env{'request.firsturl'}?$env{'request.firsturl'}:$env{'form.firsturl'});
 # ---------------------------------------- Are we access server and overloaded?