You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by re...@apache.org on 2008/12/17 20:20:50 UTC
svn commit: r727477 - in /httpd/httpd/trunk: CHANGES server/listen.c
Author: rederpj
Date: Wed Dec 17 11:20:50 2008
New Revision: 727477
URL: http://svn.apache.org/viewvc?rev=727477&view=rev
Log:
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 <poirier pobox.com>]
Modified:
httpd/httpd/trunk/CHANGES
httpd/httpd/trunk/server/listen.c
Modified: httpd/httpd/trunk/CHANGES
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/CHANGES?rev=727477&r1=727476&r2=727477&view=diff
==============================================================================
--- httpd/httpd/trunk/CHANGES [utf-8] (original)
+++ httpd/httpd/trunk/CHANGES [utf-8] Wed Dec 17 11:20:50 2008
@@ -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 <poirier pobox.com>]
+
*) Output -M and -S dumps (modules and vhosts) to stdout instead of stderr.
PR 42571 and PR 44266 (dup). [Dan Poirier <poirier pobox.com>]
Modified: httpd/httpd/trunk/server/listen.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/listen.c?rev=727477&r1=727476&r2=727477&view=diff
==============================================================================
--- httpd/httpd/trunk/server/listen.c (original)
+++ httpd/httpd/trunk/server/listen.c Wed Dec 17 11:20:50 2008
@@ -632,7 +632,11 @@
}
if (argc != 2) {
- proto = "http";
+ if (port == 443) {
+ proto = "https";
+ } else {
+ proto = "http";
+ }
}
else {
proto = apr_pstrdup(cmd->pool, argv[1]);