Skip to content

Instantly share code, notes, and snippets.

@noname77
Last active June 24, 2016 11:00
Show Gist options
  • Save noname77/6f366f7ebbe98a757ee4d960eebec621 to your computer and use it in GitHub Desktop.
Save noname77/6f366f7ebbe98a757ee4d960eebec621 to your computer and use it in GitHub Desktop.
nginx with libressl setup for debian 8.4
  1. download 64 bit Debian 8.4 Jessie vmware image from http://www.osboxes.org/debian/#debian-8-4-jessie-vmware

Username: osboxes Password: osboxes.org Root Account Password: osboxes.org

TODO: should setup a new user or change password

  1. get sudo, add osboxes user under root ALL=(ALL:ALL) ALL osboxes ALL=(ALL:ALL) ALL
su
aptitude -y install sudo
visudo
  1. install c/c++ compilers and make

comment (#) the cdrom line(s) in /etc/apt/sources.list

sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install make
  1. download nginx + libressl install script https://gist.github.com/noname77/3f1753b49889d39654f71b6e1c18c8da
wget https://gist.githubusercontent.com/noname77/3f1753b49889d39654f71b6e1c18c8da/raw/5da39a78d2f754b8f35d04c2edb5e5c6ccddb5a6/build_nginx.sh
  1. the default modules also require:
  • HTTP gzip module requires the zlib library
  • HTTP image filter module requires the GD library
  • GeoIP module requires the GeoIP library
sudo apt-get install zlib1g-dev
sudo apt-get install libgd2-xpm-dev
sudo apt-get install libgeoip-dev
  1. run the script
chmod +x ./build-nginx
./build-nginx
  1. create necessary ??? folders
sudo mkdir -p /var/lib/nginx/body
sudo mkdir /var/log/nginx
  1. run nginx
sudo nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment