Skip to content

Instantly share code, notes, and snippets.

@cpswan
Last active August 29, 2015 14:17
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 cpswan/09165120e3c2837bb950 to your computer and use it in GitHub Desktop.
Save cpswan/09165120e3c2837bb950 to your computer and use it in GitHub Desktop.
Configure Nginx similarly to Ubuntu setup but with mod_security module added
./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
@cpswan
Copy link
Author

cpswan commented Apr 20, 2015

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