]> git.kaiwu.me - nginx.git/commitdiff
allow try_files in server context
authorIgor Sysoev <igor@sysoev.ru>
Fri, 20 Mar 2009 16:48:45 +0000 (16:48 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 20 Mar 2009 16:48:45 +0000 (16:48 +0000)
src/http/ngx_http_core_module.c

index 4350ab157fde4868ac9a1033c63f82f3d438a3e5..ca9bc4f812cbcd2bd712dded5ea8d17ecdf4bcb3 100644 (file)
@@ -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,