Skip to content

Instantly share code, notes, and snippets.

@pfig
Created April 9, 2012 07:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pfig/2342198 to your computer and use it in GitHub Desktop.
Save pfig/2342198 to your computer and use it in GitHub Desktop.
Compile nginx
#!/bin/bash
set -e
./configure \
--prefix=/usr/local \
--conf-path=/usr/local/etc/nginx/nginx.conf \
--error-log-path=/var/log/nginx/error.log \
--pid-path=/var/run/nginx.pid \
--lock-path=/var/run/nginx.lock \
--user=_www \
--group=_www \
--with-http_gzip_static_module \
--with-http_perl_module \
--with-perl=/usr/local/bin/perl \
--http-log-path=/var/log/nginx/access.log \
--without-http_rewrite_module \
--add-module=/tmp/modwsgi-nginx \
--with-pcre \
--with-openssl=/usr
make -j2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment