./configure \
--prefix=/etc/nginx \
--sbin-path=/usr/sbin/nginx \
--conf-path=/etc/nginx/nginx.conf \
--error-log-path=/var/log/nginx/error.log  \
--http-log-path=/var/log/nginx/access.log \
--pid-path=/var/run/nginx.pid \
--lock-path=/var/run/nginx.lock \
--http-client-body-temp-path=/var/cache/nginx/client_temp \
--http-proxy-temp-path=/var/cache/nginx/proxy_temp \
--http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp \
--http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp \
--http-scgi-temp-path=/var/cache/nginx/scgi_temp \
--user=nobody \
--group=nobody \
--with-http_ssl_module \
--with-http_realip_module \
--with-http_addition_module \
--with-http_sub_module \
--with-http_dav_module \
--with-http_flv_module \
--with-http_mp4_module \
--with-http_gzip_static_module \
--with-http_random_index_module \
--with-http_secure_link_module \
--with-http_stub_status_module \
--with-http_auth_request_module \
--with-mail \
--with-mail_ssl_module \
--with-file-aio \
--with-http_v2_module \
--with-ipv6 \
--add-module=$HOME/custom-nginx/modules/ngx_pagespeed-1.9.32.10 \
--add-module=$HOME/custom-nginx/modules/redis2-nginx-module \
--add-module=$HOME/custom-nginx/modules/ngx-fancyindex \
--add-module=$HOME/custom-nginx/modules/ngx_http_substitutions_filter_module \
--add-module=$HOME/custom-nginx/modules/nginx-upstream-fair \
--add-module=$HOME/custom-nginx/modules/nginx-upload-progress \
--add-module=$HOME/custom-nginx/modules/nginx-module-vts \
--add-module=$HOME/custom-nginx/modules/nginx-http-push \
--add-module=$HOME/custom-nginx/modules/nginx-echo \
--add-module=$HOME/custom-nginx/modules/nginx-development-kit \
--add-module=$HOME/custom-nginx/modules/nginx-cache-purge \
--add-module=$HOME/custom-nginx/modules/headers-more-nginx-module