This topic created in 4288 days ago, the information mentioned may be changed or developed.
Supplement 1 · Aug 9, 2014
谢谢各位的提示,rewrite方式是在太蛋疼了,最终解决方案如下(其实想做的是把asp的网站以全静态的方式copy出来,参见上一篇帖子),使用nginx的第三方插件HttpLuaModule:
rewrite_by_lua '
if string.find(ngx.var.uri,".asp")~=nil then
if ngx.var.args~=nil then
ngx.req.set_uri(ngx.var.uri.."?"..ngx.var.args)
else
ngx.req.set_uri(ngx.var.uri)
end
end
';
nginx原生rewrite太不熟悉了,直接用rewrite怎么写,有人会写吗?
2 replies • 2014-08-09 19:47:16 +08:00
 |
|
1
rio Aug 9, 2014 1
搜索关键词是 percent-encoding 和 URL reserved characters
|
 |
|
2
minbaby Aug 9, 2014 1
转义 aaaa%3Fc%3D21%26d%3D89
|