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

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 18 Aug 2006 17:44:45 -0000


albertel		Fri Aug 18 13:44:45 2006 EDT

  Modified files:              
    /loncom/auth	lonlogin.pm 
  Log:
  - if the access was to 443 keep it there
  
  
Index: loncom/auth/lonlogin.pm
diff -u loncom/auth/lonlogin.pm:1.76 loncom/auth/lonlogin.pm:1.77
--- loncom/auth/lonlogin.pm:1.76	Mon Jul 24 13:25:48 2006
+++ loncom/auth/lonlogin.pm	Fri Aug 18 13:44:44 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Login Screen
 #
-# $Id: lonlogin.pm,v 1.76 2006/07/24 17:25:48 albertel Exp $
+# $Id: lonlogin.pm,v 1.77 2006/08/18 17:44:44 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -163,7 +163,8 @@
     my $userloadpercent=&Apache::lonnet::userload();
 
 # ------------------------------------------------------- Do the load balancing
-    my $otherserver='http://'.$host_name;
+    my $otherserver=
+	($ENV{'SERVER_PORT'} == 443?'https://':'HTTP://').$host_name;
     my $firsturl=
     ($env{'request.firsturl'}?$env{'request.firsturl'}:$env{'form.firsturl'});
 # ---------------------------------------- Are we access server and overloaded?