# HG changeset patch # User Igor Sysoev # Date 1237567725 0 # Node ID d0a07e5710b51f58a7c8471157eeac3a0e5adf89 # Parent 91e287d78d904a4ec3c3d262ff6c5d11701b1042 allow try_files in server context diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c --- 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_comm 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,