Software Title: Reverse Piratebay Proxy – Mac OS X
Download Link: http://proxybay.info/assets/proxy/nginx-proxy.zip
Contact Them: http://proxybay.info/contact.html
License: Freeware open source project community driven.
One of the advantages with nginx is that it works on a Mac too. This guide will explain how to configure it.
You’ll need to have Xcode installed, but that is free from Apple.
1. Configure the dependencies by going to the Terminal (Applications > Utilities) and paste in the following.
If it does not work, paste it in each line at a time
(note that the long URL on the first line wraps over onto the second, but it should be treated as a single line).
sudo curl -OL h ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.30.tar.gz > /usr/local/src/pcre-8.30.tar.gz sudo mkdir -p /usr/local/src cd /usr/local/src tar xvzf pcre-8.30.tar.gz cd pcre-8.30 ./configure --prefix=/usr/local make sudo make install cd
2. Download nginx source and untar it.
sudo curl -OL h http://nginx.org/download/nginx-1.2.0.tar.gz > /usr/local/src/nginx-1.2.0.tar.gz tar xvzf /usr/local/src/nginx-1.2.0.tar.gz
3. Download the substitutions4nginx source using subversion.
cd /usr/local/src/svn checkout http://substitutions4nginx.googlecode.com/svn/trunk/ substitutions4nginx-read-only
4. Get ready to compile by configuring. Leave out –with-http_ssl_module if you aren’t planning on using SSL.
Change the path of the substitutions4nginx-read-only directory to where you’ve downloaded it to.
cd nginx-1.2.0./configure --with-http_ssl_module --add-module=/path/to/substitutions4nginx-read-only
5. Compile it. It’ll be installed to /usr/local/sbin/ by default.
make sudo make install
6. 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.
7. If its working, we’ll stop it so we can configure it. If there are any problems, try installing it again using this guide
but make sure you include the “–add-module=/path/to/substitutions4nginx-read-only” parameter to ./compile
sudo /usr/local/sbin/nginx -s stop
8. Rename the default config file so we’ve got a copy just in case something isn’t quite right.
cd /usr/local/conf/ mv nginx.conf nginx.conf-backup
9. Download this non-SSL config and open it. Have a look at it here online first if you’re unsure.
wget http://proxybay.info/assets/proxy/nginx.conf vi nginx.conf
If you are using SSL, download this config and open it.
Have a look at it here online first if you’re unsure. This is for SSL.
wget http://proxybay.info/assets/proxy/nginx-ssl.conf mv nginx-ssl.conf nginx.conf vi nginx.conf
10. If you aren’t using SSL the only thing you should consider changing is the subs_filters, or you can remove them.
They perform a find and replace. If you are using SSL change the paths of the SSL certificates as appropriate
and edit the server_name so it is relevant.
11. Test your config works by starting nginx. If you get [emerg] errors, something needs changing.
Usually the output will point you in the right direction. If you can’t figure it out, try searching the internet
as there are a lot of resources – otherwise email with as much detail as possible.
12. If it works then submit it to The Proxy Bay by going to This Link.