All Projects → vozlt → nginx-module-url

vozlt / nginx-module-url

Licence: BSD-2-Clause License
Nginx url encoding converting module

Programming Languages

c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to nginx-module-url

nginx-module-stream-sts
Nginx stream server traffic status core module
Stars: ✭ 51 (+200%)
Mutual labels:  nginx-module, vozlt-nginx-modules
Nginx Module Vts
Nginx virtual host traffic status module
Stars: ✭ 2,518 (+14711.76%)
Mutual labels:  nginx-module, vozlt-nginx-modules
iconv
Fast encoding conversion library for Erlang / Elixir
Stars: ✭ 45 (+164.71%)
Mutual labels:  encoding
go-rison
Go port of Rison, a data serialization format optimized for compactness in URIs.
Stars: ✭ 23 (+35.29%)
Mutual labels:  encoding
scram-cli
A command-line utility to encode messages. Python 3.
Stars: ✭ 13 (-23.53%)
Mutual labels:  encoding
velvet-video
Java library for encoding / decoding / muxing / demuxing video and audio in various formats
Stars: ✭ 32 (+88.24%)
Mutual labels:  encoding
Base62
PHP Base62 encoder and decoder for integers and big integers with Laravel 5 support.
Stars: ✭ 16 (-5.88%)
Mutual labels:  encoding
dark-lord-obama
AV-evading Pythonic Reverse Shell with Dynamic Adaption Capabilities
Stars: ✭ 61 (+258.82%)
Mutual labels:  encoding
cattonum
Encode Categorical Features
Stars: ✭ 31 (+82.35%)
Mutual labels:  encoding
nginx cookie flag module
Module for Nginx which allows to set the flags "HttpOnly", "secure" and "SameSite" for cookies.
Stars: ✭ 101 (+494.12%)
Mutual labels:  nginx-module
scure-base
Secure, audited & 0-deps implementation of bech32, base64, base32, base16 & base58
Stars: ✭ 27 (+58.82%)
Mutual labels:  encoding
staxrip
StaxRip is a video encoding app for Windows with a unrivaled feature set and usability.
Stars: ✭ 132 (+676.47%)
Mutual labels:  encoding
vcdiff
Heavily optimized .NET Core vcdiff library
Stars: ✭ 16 (-5.88%)
Mutual labels:  encoding
babelfish
Universal translater for encodings
Stars: ✭ 13 (-23.53%)
Mutual labels:  encoding
Lingo
Text encoding for modern C++
Stars: ✭ 28 (+64.71%)
Mutual labels:  encoding
VarintBitConverter
Varint encoding and decoding for .NET
Stars: ✭ 21 (+23.53%)
Mutual labels:  encoding
avro ex
An Avro Library that emphasizes testability and ease of use.
Stars: ✭ 47 (+176.47%)
Mutual labels:  encoding
posprinterdriver
Android ESC/POS Printer Driver (https://play.google.com/store/apps/details?id=com.fidelier.posprinterdriver) usage notes
Stars: ✭ 61 (+258.82%)
Mutual labels:  encoding
gb-convert
Gameboy tile conversion and map editor tool
Stars: ✭ 26 (+52.94%)
Mutual labels:  encoding
nginx-jwt-module
NGINX module to check for a valid JWT.
Stars: ✭ 39 (+129.41%)
Mutual labels:  nginx-module

Nginx url encoding converting module

License

Nginx url encoding converting module

Dependencies

Compatibility

  • 1.7.x (last tested: 1.7.8)
  • 1.6.x (last tested: 1.6.2)

Earlier versions is not tested.

Installation

  1. Clone the git repository.
shell> git clone git://github.com/vozlt/nginx-module-url.git
  1. Add the module to the build configuration by adding --add-module=/path/to/nginx-module-url

  2. Build the nginx binary.

  3. Install the nginx binary.

Synopsis

http {
    url_encoding_convert               on;
    url_encoding_convert_from          utf-8;
    url_encoding_convert_to            euc-kr;
}

Description

This is an Nginx module that converts the encoding of characters in requested uri into user defined encoding(charset). That is to convert uri to user defined encoding before accessing a file of the uri. This module does work, if the requested file does not exist. For example, nginx's configuration is as above, if the server's file name is "한글.txt" encoded to euc-kr and client's requested uri is "/한글.txt" encoded to utf-8 and the requested uri is changed to euc-kr by the module before access to the file to generate content. This module's working phase can be changed according to the directive url_encoding_convert_phase's option.

Directives

url_encoding_convert

- -
Syntax url_encoding_convert_from [on|off]
Default -
Context http, server, location

Description: The module working's enable or disable.

url_encoding_convert_from

- -
Syntax url_encoding_convert_from <charset>
Default utf-8
Context http, server, location

Description: The encoding charset from client.

url_encoding_convert_to

- -
Syntax url_encoding_convert_to <charset>
Default euc-kr
Context http, server, location

Description: The encoding charset from server.

url_encoding_convert_phase

- -
Syntax url_encoding_convert_phase [post_read|preaccess]
Default preaccess
Context http, server, location

Description: The module's working phase.

The following values are available when using this directive:

  • post_read
    • It works before nginx-rewrite-module.
  • preaccess
    • It works after nginx-rewrite-module.

url_encoding_convert_alloc_size

- -
Syntax url_encoding_convert_alloc_size <buffer_size>
Default 0
Context http, server, location

Description: The iconv output buffer size(bytes).

url_encoding_convert_alloc_size_x

- -
Syntax url_encoding_convert_alloc_size_x [x4-x16]
Default x4
Context http, server, location

Description: The iconv output buffer size will be multiplied. The value will be multiplied by the length of the requested uri.

If has been set to both url_encoding_convert_alloc_size and url_encoding_convert_alloc_size_x(multiplied by uri.len), set the larger value of the two.

Author

YoungJoo.Kim(김영주) [[email protected]]

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].