Fork me on GitHub

nginx_tcp_proxy_module by yaoweibin

add the feature of tcp proxy with nginx, with health check and status monitor

This module actually include many modules: ngx_tcp_module, ngx_tcp_core_module, ngx_tcp_upstream_module, ngx_tcp_proxy_module, ngx_tcp_upstream_ip_hash_module. All these modules work togther to add the support of TCP proxy with Nginx. I also add other features: ip_hash, upstream server health check, status monitor.

The motivation of writing these modules is Nginx's high performance and robustness.

Dependencies

Nginx 0.7.65+

Install

Download the latest version of the release tarball of this module from github (http://github.com/yaoweibin/nginx_tcp_proxy_module)

Grab the nginx source code from nginx.org (http://nginx.org/), for example, the version 0.7.65 (see nginx compatibility), and then build the source with this module:

$ wget 'http://nginx.org/download/nginx-0.7.65.tar.gz'
$ tar -xzvf nginx-0.7.65.tar.gz
$ cd nginx-0.7.65/
$ patch -p1 < /path/to/nginx_tcp_proxy_module/tcp.patch
$ ./configure --add-module=/path/to/nginx_tcp_proxy_module
$ make
$ make install

Document

This is a simple README.

License

New BSD

Authors

Weibin Yao (yaoweibin@gmail.com)

Contact

Weibin Yao(姚伟斌) (yaoweibin@gmail.com)

Download

You can download this project in either zip or tar formats.

You can also clone the project with Git by running:

$ git clone git://github.com/yaoweibin/nginx_tcp_proxy_module