Skip to content

Instantly share code, notes, and snippets.

@0xa
Created September 16, 2013 19:33
Show Gist options
  • Save 0xa/6585406 to your computer and use it in GitHub Desktop.
Save 0xa/6585406 to your computer and use it in GitHub Desktop.
#!/bin/sh
VERSION="1.2.3"
cd nginx-$VERSION
./configure \
--prefix=/usr \
--sbin-path=/usr/sbin/nginx \
--conf-path=/etc/nginx/nginx.conf \
--error-log-path=/var/log/nginx/error.log \
--pid-path=/var/run/nginx/nginx.pid \
--lock-path=/var/lock/nginx.lock \
--user=www-data \
--group=www-data \
--with-ipv6 \
--with-http_ssl_module \
--with-http_flv_module \
--with-http_gzip_static_module \
--with-http_addition_module \
--with-http_secure_link_module \
--with-http_stub_status_module \
--http-log-path=/var/log/nginx/access.log \
--http-client-body-temp-path=/var/tmp/nginx/client/ \
--http-proxy-temp-path=/var/tmp/nginx/proxy/ \
--http-fastcgi-temp-path=/var/tmp/nginx/fcgi/ \
--add-module=/root/nginx/agentzh-memc-nginx-module-a0bc33a \
--add-module=/root/nginx/echo-nginx-module \
--add-module=/root/nginx/substitutions4nginx-read-only \
--add-module=/root/nginx/vkholodkov-nginx-eval-module-125fa2e
make
checkinstall -y --provides=httpd
dpkg --install nginx_$VERSION-1_amd64.deb
killall nginx
service nginx restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment