Skip to content

Instantly share code, notes, and snippets.

@abhinavsingh
Created May 9, 2012 14:26
Show Gist options
  • Save abhinavsingh/2644878 to your computer and use it in GitHub Desktop.
Save abhinavsingh/2644878 to your computer and use it in GitHub Desktop.
nginx installation
## dependencies
sudo apt-get install libpcre3-dev zlib1g-dev libssl-dev
## user/group config
sudo groupadd nginx
sudo useradd -M --gid nginx nginx
## configure and install
./configure --prefix=/usr --user=nginx --group=nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --pid-path=/var/run/nginx.pid --lock-path=/var/lock/nginx.lock --http-client-body-temp-path=/var/tmp/nginx/client --http-proxy-temp-path=/var/tmp/nginx/proxy --http-fastcgi-temp-path=/var/tmp/nginx/fastcgi --http-uwsgi-temp-path=/var/tmp/nginx/uwsgi --http-scgi-temp-path=/var/tmp/nginx/scgi --with-http_ssl_module
make
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment