From: Bradley Nicholes Date: Mon, 24 Nov 2003 20:36:31 +0000 (+0000) Subject: Hook the default_port so that mod_nw_ssl will return the correct port rather X-Git-Tag: 2.0.49~349 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c849711f82b5d6a1f725d876cb484510c8174571;p=thirdparty%2Fapache%2Fhttpd.git Hook the default_port so that mod_nw_ssl will return the correct port rather than defaulting to 80 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/APACHE_2_0_BRANCH@101871 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/arch/netware/mod_nw_ssl.c b/modules/arch/netware/mod_nw_ssl.c index 84cfc76c0c5..e5e346dcb76 100644 --- a/modules/arch/netware/mod_nw_ssl.c +++ b/modules/arch/netware/mod_nw_ssl.c @@ -556,6 +556,14 @@ static const char *nwssl_hook_http_method (const request_rec *r) return NULL; } +static apr_port_t nwssl_hook_default_port(const request_rec *r) +{ + if (isSecure(r)) + return DEFAULT_HTTPS_PORT; + + return 0; +} + int ssl_proxy_enable(conn_rec *c) { apr_table_set(c->notes, "nwconv-ssl", "Y"); @@ -585,6 +593,7 @@ static void register_hooks(apr_pool_t *p) ap_hook_post_config(nwssl_post_config, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_fixups(nwssl_hook_Fixup, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_http_method(nwssl_hook_http_method, NULL,NULL, APR_HOOK_MIDDLE); + ap_hook_default_port (nwssl_hook_default_port, NULL,NULL, APR_HOOK_MIDDLE); APR_REGISTER_OPTIONAL_FN(ssl_proxy_enable); APR_REGISTER_OPTIONAL_FN(ssl_engine_disable);