会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
我的风光不靠风景.
博客园
首页
新随笔
联系
订阅
管理
2018年3月26日
nginx+lua 根据指定路径反向代理
摘要: 1 location /imgproxytest{ 2 if ($uri ~ ".*\.(jpg|png|jpeg|bmp|gif|swf|css)$"){ 3 rewrite_by_lua 'local url = ngx.var.request_uri local new_url = string.gsub(url,"/imgproxytest","") ngx.redirect("h...
阅读全文
posted @ 2018-03-26 18:17 嘿嘿果宝
阅读(424)
评论(1)
推荐(0)
编辑
公告