httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug MacEachern <do...@covalent.net>
Subject Listen vs. Port
Date Fri, 10 Aug 2001 01:59:08 GMT
if Listen is used to set the server port, and Port is not configured,
ap_get_server_port returns the default port (80).  this breaks mod_dir
redirects if Listen is something other than 80.  should Listen also set
the server->port (as in the patch below) or is it required that Port must
also be configured?

Index: server/listen.c
===================================================================
RCS file: /home/cvs/httpd-2.0/server/listen.c,v
retrieving revision 1.59
diff -u -r1.59 listen.c
--- server/listen.c     2001/07/26 16:36:40     1.59
+++ server/listen.c     2001/08/10 01:51:35
@@ -353,6 +353,10 @@
         return "Port must be specified";
     }
 
+    if (!cmd->server->port) {
+        cmd->server->port = port;
+    }
+
     alloc_listener(cmd->server->process, host, port);
 
     return NULL;



Mime
View raw message