Skip to content

Instantly share code, notes, and snippets.

@minhajuddin
Created November 4, 2010 09:47
Show Gist options
  • Save minhajuddin/662285 to your computer and use it in GitHub Desktop.
Save minhajuddin/662285 to your computer and use it in GitHub Desktop.
nginx configure script
#pcre libraries
sudo apt-get install libpcre3 libpcre3-dev
#configure options
./configure \
--conf-path=/etc/nginx/nginx.conf \
--error-log-path=/var/log/nginx/error.log \
--pid-path=/var/run/nginx.pid \
--lock-path=/var/lock/nginx.lock \
--http-log-path=/var/log/nginx/access.log \
--http-client-body-temp-path=/var/lib/nginx/body \
--http-proxy-temp-path=/var/lib/nginx/proxy \
--without-http_fastcgi_module \
--without-http_uwsgi_module \
--with-http_stub_status_module \
--with-http_gzip_static_module \
--with-http_ssl_module
#nginx path prefix: "/usr/local/nginx"
#nginx binary file: "/usr/local/nginx/sbin/nginx"
#nginx configuration prefix: "/etc/nginx"
#nginx configuration file: "/etc/nginx/nginx.conf"
#nginx pid file: "/var/run/nginx.pid"
#nginx error log file: "/var/log/nginx/error.log"
#nginx http access log file: "/var/log/nginx/access.log"
#nginx http client request body temporary files: "/var/lib/nginx/body"
#nginx http proxy temporary files: "/var/lib/nginx/proxy"
#nginx http scgi temporary files: "scgi_temp"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment