[LON-CAPA-cvs] cvs: loncom / lonhttpd

www lon-capa-cvs@mail.lon-capa.org
Fri, 02 May 2003 21:03:19 -0000


www		Fri May  2 17:03:19 2003 EDT

  Modified files:              
    /loncom	lonhttpd 
  Log:
  More informative error message. This situation can happen if some "smart" 
  browser starts completing URLs.
  
  
Index: loncom/lonhttpd
diff -u loncom/lonhttpd:1.6 loncom/lonhttpd:1.7
--- loncom/lonhttpd:1.6	Mon Feb 24 18:32:32 2003
+++ loncom/lonhttpd	Fri May  2 17:03:19 2003
@@ -1,5 +1,5 @@
 #!/usr/bin/perl
-# $Id: lonhttpd,v 1.6 2003/02/24 23:32:32 albertel Exp $
+# $Id: lonhttpd,v 1.7 2003/05/02 21:03:19 www Exp $
 
 $VERSION = "1.3.2 (Demonic/Linux/LON-CAPA Derivative $Revison$)";
 
@@ -374,8 +374,8 @@
 	if ($fail) {
 		&htsponse(403, "Forbidden");
 		if ($fail == 1) {
-			&hterror("Forbidden (Client Disallowed)", <<"EOF");
-Your network address (<i>$ip</i>) is not allowed to access this resource.
+			&hterror("Wrong URL", <<"EOF");
+You might want to remove the "<tt>:$port_to_use</tt>" from the web page address (URL).
 EOF
 			&log; exit;
 		} else {