Build configurations

Z Waritkova wiki
Verze z 7. 11. 2017, 12:48, kterou vytvořil Waritko (diskuse | příspěvky) (With LUA module - openssl)
Skočit na navigaci Skočit na vyhledávání

Nginx

./configure --prefix=/opt/nginx --with-http_ssl_module --with-http_v2_module --with-http_realip_module --with-http_addition_module --with-http_auth_request_module --with-http_random_index_module --with-http_stub_status_module --with-cc-opt="-O2 -march=native -D_FORTIFY_SOURCE=2" --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 --with-pcre-jit --with-http_auth_request_module --with-http_dav_module --with-http_geoip_module --with-http_gzip_static_module --with-http_image_filter_module --with-http_sub_module --with-http_gzip_static_module  --with-http_perl_module --with-http_degradation_module --with-openssl=../openssl

With LUA module

CC="gcc -march=native" ./configure --prefix=/opt/nginx --with-http_ssl_module --with-http_v2_module --with-http_realip_module --with-http_addition_module --with-http_auth_request_module --with-http_random_index_module --with-http_stub_status_module --with-cc-opt="-O2 -march=native -D_FORTIFY_SOURCE=2 -I ../openssl/.openssl/include/" --with-ld-opt="-L ../boringssl/.openssl/lib" --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 --with-pcre-jit --with-http_auth_request_module --with-http_dav_module --with-http_geoip_module --with-http_gzip_static_module --with-http_image_filter_module --with-http_sub_module --with-http_gzip_static_module  --with-http_perl_module --with-http_degradation_module --with-openssl=../openssl --add-module=../ngx_devel_kit/ --add-module=../lua-nginx-module/ --add-module=../ngx-fancyindex/

With LUA module - openssl

CC="gcc -march=native" ./configure --prefix=/opt/nginx --with-http_ssl_module --with-http_v2_module --with-http_realip_module --with-http_addition_module --with-http_auth_request_module --with-http_random_index_module --with-http_stub_status_module --with-cc-opt="-O2 -march=native -D_FORTIFY_SOURCE=2" --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 --with-pcre-jit --with-http_auth_request_module --with-http_dav_module --with-http_geoip_module --with-http_gzip_static_module --with-http_image_filter_module --with-http_sub_module --with-http_gzip_static_module  --with-http_perl_module --with-http_degradation_module --with-openssl=../openssl-1.1.0g --add-module=../ngx_devel_kit/ --add-module=../lua-nginx-module/ --add-module=../ngx-fancyindex/ --add-module=../ngx_brotli/