From: Paul J. Reder Date: Wed, 17 Dec 2008 19:20:50 +0000 (+0000) Subject: Set Listen protocol to "https" if port is set to 443 and no proto is specified X-Git-Tag: 2.3.1~113 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=48d1213d62160c59d4a7317f4e966b2056cac277;p=thirdparty%2Fapache%2Fhttpd.git Set Listen protocol to "https" if port is set to 443 and no proto is specified (as documented but not implemented). PR 46066 [Dan Poirier ] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@727477 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 66572b5787a..533880f4cae 100644 --- a/CHANGES +++ b/CHANGES @@ -2,6 +2,9 @@ Changes with Apache 2.3.1 [ When backported to 2.2.x, remove entry from this file ] + *) Set Listen protocol to "https" if port is set to 443 and no proto is specified + (as documented but not implemented). PR 46066 [Dan Poirier ] + *) Output -M and -S dumps (modules and vhosts) to stdout instead of stderr. PR 42571 and PR 44266 (dup). [Dan Poirier ] diff --git a/server/listen.c b/server/listen.c index eff2751075a..8ec09dc0260 100644 --- a/server/listen.c +++ b/server/listen.c @@ -632,7 +632,11 @@ AP_DECLARE_NONSTD(const char *) ap_set_listener(cmd_parms *cmd, void *dummy, } if (argc != 2) { - proto = "http"; + if (port == 443) { + proto = "https"; + } else { + proto = "http"; + } } else { proto = apr_pstrdup(cmd->pool, argv[1]);