diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index a21da0f..3f5cb29 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -1195,6 +1195,11 @@ p = ngx_copy(r->uri.data, clcf->name.data, alias); ngx_memcpy(p, name, path.len); + } + + if (ngx_http_set_exten(r) != NGX_OK) { + ngx_http_finalize_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR); + return NGX_OK; } ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,