文艺马里奥

文章
4
资源
0
加入时间
4年1月24天

Nginx如何将带后缀的url进行匹配

客户要求的是以.xhtml为后缀的url,服务却没有后缀?server {listen 8080;default_type 'text/html';charset utf-8;#匹配以IFCSI开头的后缀为.xhtml的url, $1为括号里面的内容,转到abc/$1,abc可任意替换,主要满足下面匹配location / { rewrite '^/IFCSI/(.*)\.xhtm...