Skip to content

Instantly share code, notes, and snippets.

@imerr
Last active September 28, 2017 08:47
Show Gist options
  • Save imerr/2ad7a9c75c07a02f5506390f0a8e844d to your computer and use it in GitHub Desktop.
Save imerr/2ad7a9c75c07a02f5506390f0a8e844d to your computer and use it in GitHub Desktop.
./configure --with-http_ssl_module \
--with-http_stub_status_module \
--with-http_gzip_static_module \
--with-pcre-jit \
--with-ipv6 \
--with-cc-opt='-O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2' \
--with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro' \
--prefix=/usr/share/nginx \
--sbin-path=/usr/sbin/nginx \
--conf-path=/etc/nginx/nginx.conf \
--http-log-path=/var/log/nginx/access.log \
--error-log-path=/var/log/nginx/error.log \
--lock-path=/var/lock/nginx.lock \
--pid-path=/run/nginx.pid \
--http-client-body-temp-path=/var/lib/nginx/body \
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi \
--http-proxy-temp-path=/var/lib/nginx/proxy \
--http-scgi-temp-path=/var/lib/nginx/scgi \
--http-uwsgi-temp-path=/var/lib/nginx/uwsgi \
--user=www-data --group=www-data -j8 --with-http_v2_module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment