Skip to content

Instantly share code, notes, and snippets.

@willrnch
Last active December 25, 2015 02:49
Show Gist options
  • Save willrnch/6905508 to your computer and use it in GitHub Desktop.
Save willrnch/6905508 to your computer and use it in GitHub Desktop.
#!/bin/sh
# Nginx light
yum install pcre-devel zlib-devel openssl-devel
# apt-get install libpcre3-dev libssl-dev
./configure \
--prefix=/etc/nginx \
--conf-path=/etc/nginx/nginx.conf \
--error-log-path=/var/log/nginx/error.log \
--http-client-body-temp-path=/var/lib/nginx/body \
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi \
--http-log-path=/var/log/nginx/access.log \
--http-proxy-temp-path=/var/lib/nginx/proxy \
--lock-path=/var/lock/nginx.lock \
--pid-path=/var/run/nginx.pid \
--with-http_gzip_static_module \
--with-http_ssl_module \
--with-http_spdy_module \
--with-ipv6 \
--without-http_browser_module \
--without-http_geo_module \
--without-http_limit_req_module \
--without-http_limit_conn_module \
--without-http_memcached_module \
--without-http_referer_module \
--without-http_scgi_module \
--without-http_split_clients_module \
--with-http_stub_status_module \
--without-http_ssi_module \
--without-http_userid_module \
--without-http_uwsgi_module \
--sbin-path=/usr/sbin/nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment