Skip to content

Instantly share code, notes, and snippets.

@lsongdev
Created October 27, 2014 07:06
Show Gist options
  • Select an option

  • Save lsongdev/4a1e64a5b02293a93e37 to your computer and use it in GitHub Desktop.

Select an option

Save lsongdev/4a1e64a5b02293a93e37 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
LATEST_URL="http://nginx.org/download/nginx-1.6.2.tar.gz"
sudo apt-get update
sudo apt-get install libssl-dev
sudo apt-get install zlibc zlib1g zlib1g-dev
wget $LATEST_URL -O /tmp/nginx-latest
git clone https://github.com/gnosek/nginx-upstream-fair.git
tar -xzvf /tmp/nginx-latest
cd /tmp/nginx-latest
./configure --with-http_ssl_module --add-module=/absolute/path/to/nginx-upstream-fair
make
sudo make install
echo "All done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment