From f100c7816dd910907597f716bf561f3361f88e1a Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 1 Sep 2008 14:19:01 +0000 Subject: *) listen ssl *) no default ssl_cetificate and ssl_cetificate_key --- src/http/ngx_http_core_module.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/http/ngx_http_core_module.c') diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index c0c9e74be..dbdde6b01 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -3081,6 +3081,18 @@ ngx_http_core_listen(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) continue; } + if (ngx_strcmp(value[n].data, "ssl") == 0) { +#if (NGX_HTTP_SSL) + ls->conf.ssl = 1; + continue; +#else + ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, + "the \"ssl\" parameter requires " + "ngx_http_ssl_module"); + return NGX_CONF_ERROR; +#endif + } + ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, "the invalid \"%V\" parameter", &value[n]); return NGX_CONF_ERROR; -- cgit