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.
Nginx 0.7.65+
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
This is a simple README.
New BSD
Weibin Yao (yaoweibin@gmail.com)
Weibin Yao(姚伟斌) (yaoweibin@gmail.com)
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