rewrite和if语句rewriteif
文章目录rewriteif基于浏览器实现分离案例防盗链案例rewrite语法:rewrite regex replacement flag;,如:#客户访问192.168.96.129/images下输入任何.jpg的都访问到/imgs下的.jpj location / { root html; index index.html index.htm; rewrite ^/images/(.*\.jpg)$ /