allow try_files in server context

This commit is contained in:
Igor Sysoev 2009-03-20 16:48:45 +00:00
parent cd70a5225a
commit e018a9c6ef

View 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,