Last active
August 29, 2015 14:17
-
-
Save cpswan/09165120e3c2837bb950 to your computer and use it in GitHub Desktop.
Configure Nginx similarly to Ubuntu setup but with mod_security module added
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./configure --prefix=/usr/share/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 --with-debug --with-pcre-jit --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_addition_module --with-http_dav_module --with-http_geoip_module --with-http_gzip_static_module --with-http_image_filter_module --with-http_spdy_module --with-http_sub_module --with-http_xslt_module --with-mail --with-mail_ssl_module --add-module=/root/modsecurity-2.9.0/nginx/modsecurity |
When configuring modsecurity:
./configure --enable-standalone-module --disable-mlogc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
These guides helped:
https://kx.cloudingenium.com/linux/ubuntu/build-version-nginx/
http://www.nginxtips.com/how-to-install-mod_security-on-nginx/
https://launchpad.net/ubuntu/+source/nginx/1.6.2-5ubuntu1
https://blog.stickleback.dk/nginx-modsec-on-ubuntu-14-04-lts/