dannote / socks-nginx-module

An nginx_http_proxy_module fork with SOCKS5 support
196 stars 65 forks source link

How to build it? #3

Closed denouche closed 7 years ago

denouche commented 7 years ago

Hi, I would like to try out your module, but I really don't know how to install it into my Nginx. Any help ? Thanks

dannote commented 7 years ago

Hello!

You need to download nginx sources and build it from scratch including this module. Assuming you have a Debian-based Linux distribution, you should do the following:

sudo apt-get install git build-essential
sudo apt-get build-dep nginx

git clone https://github.com/dannote/socks-nginx-module
wget http://nginx.org/download/nginx-1.9.15.tar.gz

tar -xzvf nginx-1.9.15.tar.gz

cd nginx-1.9.15

# See http://nginx.org/en/docs/configure.html for more configuration options
./configure --add-module=../socks-nginx-module

make
sudo make install
denouche commented 7 years ago

thx!