ngx_http_try_files_module模块
默认编译到nginx中的,没有办法取消
precontent阶段生效的try_files指令
功能:
依次试图访问多个url对应的文件(由root或alias指令指定),当文件存在时,直接返回文件内容,如果所有文件都不存在,则按最后一个URL或者code返回.
1.try_files指令
(1)try_files file .....uri
(2)try_files file......code
默认:空
放置位置:server,location