From: Igor Sysoev Date: Fri, 20 Mar 2009 16:48:45 +0000 (+0000) Subject: allow try_files in server context X-Git-Tag: release-0.7.44~8 X-Git-Url: http://git.kaiwu.me/sitemap.xml?a=commitdiff_plain;h=e018a9c6efbfc99fcc8a9e31c09f45508e762b95;p=nginx.git allow try_files in server context --- diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index 4350ab157..ca9bc4f81 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -542,7 +542,7 @@ static ngx_command_t ngx_http_core_commands[] = { NULL }, { ngx_string("try_files"), - NGX_HTTP_LOC_CONF|NGX_CONF_2MORE, + NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_2MORE, ngx_http_core_try_files, NGX_HTTP_LOC_CONF_OFFSET, 0,