hi-nginx 1.8.6 发布,支持子请求

栏目: 软件资讯 · 发布时间: 7年前

内容简介:hi-nginx-1.8.6已经发布。 主要更新: 更新nginx至1.15.8 新增子请求支持,不限请求方法 新增缓存控制,可选择请求方法,默认GET 新增tokens控制,可隐藏hi-nginx版本 子请求例子:         location ^...

hi-nginx-1.8.6已经发布。

主要更新:

  • 更新nginx至1.15.8

  • 新增子请求支持,不限请求方法

  • 新增缓存控制,可选择请求方法,默认GET

  • 新增tokens控制,可隐藏hi-nginx版本

子请求例子:

        location ^~ /sub {
                hi_subrequest '/query';
                hi_lua_content 'hi_res:header("Content-Type",hi_req:get_form("__subrequest_content_type__"))\nhi_res:status(tonumber(hi_req:get_form("__subrequest_status__")))\nhi_res:content(hi_req:get_form("__subrequest_body__"))';
        }

        location ^~ /query {
                internal;
                proxy_pass http://http://hq.sinajs.cn/;
                proxy_set_header Accept-Encoding '';
        }
#  curl -i http://localhost/sub?list=sh601006

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

The Zen of CSS Design

The Zen of CSS Design

Dave Shea、Molly E. Holzschlag / Peachpit Press / 2005-2-27 / USD 44.99

Proving once and for all that standards-compliant design does not equal dull design, this inspiring tome uses examples from the landmark CSS Zen Garden site as the foundation for discussions on how to......一起来看看 《The Zen of CSS Design》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试