Skip to content

Instantly share code, notes, and snippets.

@douhashi
Created February 9, 2012 07:42
Show Gist options
  • Save douhashi/1778165 to your computer and use it in GitHub Desktop.
Save douhashi/1778165 to your computer and use it in GitHub Desktop.
make script for nginx
#!/bin/sh
NGINX=nginx-1.1.14
cd $NGINX \
&& ./configure \
--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=nginx \
--group=nginx \
--with-http_stub_status_module \
--with-http_ssl_module \
--with-http_gzip_static_module \
--with-http_realip_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/ \
&& make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment