From: Bradley Nicholes Date: Mon, 24 Nov 2003 20:36:55 +0000 (+0000) Subject: Hook the default_port so that mod_nw_ssl will return the correct port rather X-Git-Tag: pre_ajp_proxy~1012 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8e1147717a2690c7291ac4d6cfa1ef270114d6dd;p=apache 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/trunk@101872 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/arch/netware/mod_nw_ssl.c b/modules/arch/netware/mod_nw_ssl.c index 84cfc76c0c..e5e346dcb7 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);