nginx配置选项try_files详解

.try_files是nginx中http_core核心模块所带的指令,主要是能替代一些rewrite的指令,提高解析效率。官网的文档为http://nginx.org/en/docs/http/ngx_http_core_module.html#try_files

.try_files的语法规则:

    格式1:try_files file ... uri;  格式2:try_files file ... =code;

    可应用的上下文:server,location段

 try_files的语法解释:(先贴出)

  

猜你喜欢

转载自www.cnblogs.com/jedi1995/p/10900224.html