Skip to content

Instantly share code, notes, and snippets.

@rharriso
Created February 14, 2018 21:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rharriso/db92a290f8f1fb8214e0924484fd52df to your computer and use it in GitHub Desktop.
Save rharriso/db92a290f8f1fb8214e0924484fd52df to your computer and use it in GitHub Desktop.
Installing Nginx Locally
From https://www.vultr.com/docs/how-to-compile-nginx-from-source-on-ubuntu-16-04
./configure --prefix=/home/myusename/nginx/share/nginx \
--sbin-path=/home/myusename/bin/nginx \
--modules-path=/home/myusename/nginx/lib/nginx/modules \
--conf-path=/home/myusename/nginx/nginx.conf \
--error-log-path=/home/myusename/nginx/log/nginx/error.log \
--http-log-path=/home/myusename/nginx/log/nginx/access.log \
--pid-path=/run/nginx.pid \
--lock-path=/home/myusename/nginx/lock/nginx.lock \
--user=www-data \
--group=www-data \
--build=Ubuntu \
--http-client-body-temp-path=/home/myusename/nginx/lib/nginx/body \
--http-fastcgi-temp-path=/home/myusename/nginx/lib/nginx/fastcgi \
--http-proxy-temp-path=/home/myusename/nginx/lib/nginx/proxy \
--http-scgi-temp-path=/home/myusename/nginx/lib/nginx/scgi \
--http-uwsgi-temp-path=/home/myusename/nginx/lib/nginx/uwsgi \
--with-openssl=../openssl-1.1.0f \
--with-openssl-opt=enable-ec_nistp_64_gcc_128 \
--with-openssl-opt=no-nextprotoneg \
--with-openssl-opt=no-weak-ssl-ciphers \
--with-openssl-opt=no-ssl3 \
--with-pcre=../pcre-8.40 \
--with-pcre-jit \
--with-zlib=../zlib-1.2.11 \
--with-compat \
--with-file-aio \
--with-threads \
--with-http_addition_module \
--with-http_auth_request_module \
--with-http_dav_module \
--with-http_flv_module \
--with-http_gunzip_module \
--with-http_gzip_static_module \
--with-http_mp4_module \
--with-http_random_index_module \
--with-http_realip_module \
--with-http_slice_module \
--with-http_ssl_module \
--with-http_sub_module \
--with-http_stub_status_module \
--with-http_v2_module \
--with-http_secure_link_module \
--with-mail \
--with-mail_ssl_module \
--with-stream \
--with-stream_realip_module \
--with-stream_ssl_module \
--with-stream_ssl_preread_module \
--with-debug \
--with-cc-opt='-g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2' \
--with-ld-opt='-Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment