Skip to content

Instantly share code, notes, and snippets.

@outsideris
Last active October 5, 2015 10:18
Show Gist options
  • Select an option

  • Save outsideris/2792854 to your computer and use it in GitHub Desktop.

Select an option

Save outsideris/2792854 to your computer and use it in GitHub Desktop.
compiling nginx
$ sudo apt-get install gcc
# or build-essential
$ sudo apt-get install libpcre3 libpcre3-dev
$ sudo apt-get install zlib1g zlib1g-dev
$ sudo apt-get install libssl-dev
$ ./configure --prefix=/usr/local/lib/nginx/nginx-1.2.0 \
--conf-path=/etc/nginx/nginx.conf \
--error-log-path=/var/log/nginx/error.log \
--http-log-path=/var/log/nginx/access.log \
--with-http_ssl_module \
--with-http_stub_status_module \
--user=outsider
$ sudo make
$ sudo make install
$ wget http://nginx.org/download/nginx-1.3.15.tar.gz
$ tar xzvf nginx-1.3.15.tar.gz
$ cd nginx-1.3.15
$ ./configure --with-http_spdy_module \
--with-http_ssl_module \
--pid-path=/var/run/nginx.pid \
--conf-path=/etc/nginx/nginx.conf \
--sbin-path=/usr/local/sbin/nginx \
--http-log-path=/var/log/nginx/access.log \
--error-log-path=/var/log/nginx/error.log \
--without-http_rewrite_module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment