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

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

查看所有标签

猜你喜欢:

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

Algorithms for Image Processing and Computer Vision

Algorithms for Image Processing and Computer Vision

Parker, J. R. / 2010-12 / 687.00元

A cookbook of algorithms for common image processing applications Thanks to advances in computer hardware and software, algorithms have been developed that support sophisticated image processing with......一起来看看 《Algorithms for Image Processing and Computer Vision》 这本书的介绍吧!

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具