nginx rewrite 语法

先附上官方文档地址:http://nginx.org/en/docs/http/ngx_http_rewrite_module.html 。html rewrite 是实现url重写以及重定向的。基于 ngx_http_rewrite_module 模块用来使用正则表达式( PCRE )改变请求的URI,返回重定向,并有条件地选择配置。nginx 重写中用到的指令:正则表达式 if  (条件) {
相关文章
相关标签/搜索