这是一个创建于 3561 天前的主题,其中的信息可能已经有所发展或是发生改变。
第 1 条附言 · 2014-08-09 21:11:54 +08:00
谢谢各位的提示,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 条回复 • 2014-08-09 19:47:16 +08:00
|
|
1
rio 2014-08-09 19:46:55 +08:00 1
搜索关键词是 percent-encoding 和 URL reserved characters
|
|
|
2
minbaby 2014-08-09 19:47:16 +08:00 1
转义 aaaa%3Fc%3D21%26d%3D89
|