Setup a pirate bay proxy
This is a how-to on how to setup a pirate bay proxy on Ubuntu 12.04
Firstly, Install the dependencies
apt-get install libpcre3 libpcre3-dev zlib1g zlib1g-dev openssl gcc make subversion
Next grab nginx
wget http://nginx.org/download/nginx-1.4.2.tar.gz
Download the substitutions4nginx source using subversion.
svn checkout http://substitutions4nginx.googlecode.com/svn/trunk/ substitutions4nginx-read-only
Extract the source.
tar xzvf nginx-1.4.2.tar.gz
cd nginx-1.4.2.tar.gz
Get ready to compile by configuring. Change the path of the substitutions4nginx-read-only directory to where you’ve downloaded it to. If you haven’t changed the path and are logged in as root it’ll probably be /root/substitutions4nginx-read-only/
./configure -add-module=/path/to/substitutions4nginx-read-only
Compile it. It’ll be installed to /usr/local/nginx/ by default.
make
make install
Test nginx is working by starting it then typing in your server IP in your web browser. You should see the Welcome to nginx! message.
cd /usr/local/nginx/
./sbin/nginx
If its working, we’ll stop it so we can configure it.
./sbin/nginx -s stop
Rename the default config file so we’ve got a copy just in case something isn’t quite right.
cd conf
mv nginx.conf nginx.conf-backup
Download this config file:
wget http://proxybay.info/assets/proxy/nginx.conf
Test your config works by starting nginx.
./usr/local/nginx/sbin/nginx
Thats it. All working