Coder Social home page Coder Social logo

ngx_http_gunzip_request's Introduction

ngx_http_gunzip_request

This is nginx module that inflating gzipped requests.

Build

To configure nginx to use ngx_http_gunzip_request module, put --add-module=/path/to/ngx_http_gunzip_request for nginx's auto/configurescript. Then build and install nginx as usual.

For example:

$ ./auto/configure --prefix=/opt/nginx \
    --add-module=/path/to/ngx_http_gunzip_request
$ make
$ sudo make install

Configuration

  • gunzip_request - boolean. enable this module for location.

  • gunzip_request_buffers - integer, optional. number of buffer pages for inflation.

These two configurations can be put into root level, server block, and location block.

Example of partial nginx.conf:

location /gunzip_request/ {
    gunzip_request on;

    # no need this anymore
    ## remove "Content-Encoding: gzip" header from request.
    #proxy_set_header content-encoding '';

    # general configurations for reverse proxy
    proxy_pass http://192.168.0.123:8000/;
    proxy_http_version 1.1;
    proxy_set_header connection '';

    # unlimit POST body size for tests
    #client_max_body_size 0;
}

Dynamic module

To build ngx_http_gunzip_request as dynamic module, at first you should configure with --add-dynamic-module option instead of --add-module option.

For example:

$ ./auto/configure --prefix=/opt/nginx \
    --add-dynamic-module=/path/to/ngx_http_gunzip_request
$ make
$ sudo make install

Next add load_module directive at prior of nginx.conf file.

load_module ディレクティブはなるべく nginx.conf の先頭のほうに書いたほうが良いです。

```nginx` load_module /opt/nginx/modules/ngx_http_gunzip_request.so;

your other configurations...

ngx_http_gunzip_request's People

Contributors

koron avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.