Page 1 of 1

mod_security got removed in nginx-1.4.7-18.el6.art.x86_64?

Posted: Thu Apr 10, 2014 12:13 pm
by mmpower
I have been using nginx from atomic which has mod_security support. but when I upgraded from nginx 1.4.4 to 1.4.7, seems mod_security is gone and I got error
"Starting nginx: nginx: [emerg] unknown directive "ModSecurityEnabled" in /etc/nginx/conf.d/default.conf:"

I had to downgrade nginx all the way to 1.4.5 version and it worked again. so seems the support was removed since 1.4.6 version. Could you add mod_security back in nginx el6 packages?

Re: mod_security got removed in nginx-1.4.7-18.el6.art.x86_6

Posted: Sun Apr 13, 2014 12:14 pm
by freethought
I raised this with AtomiCorp the other day and ModSecurity support for Nginx should be enabled again in the nginx-1.4.7-20 RPM.
rpm -q nginx wrote:nginx-1.4.7-20.el6.art.x86_64
nginx -V wrote:nginx version: nginx/1.4.7
TLS SNI support enabled
configure arguments: --prefix=/usr/share/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 --http-client-body-temp-path=/var/lib/nginx/tmp/client_body --http-proxy-temp-path=/var/lib/nginx/tmp/proxy --http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi --http-uwsgi-temp-path=/var/lib/nginx/tmp/uwsgi --http-scgi-temp-path=/var/lib/nginx/tmp/scgi --pid-path=/var/run/nginx.pid --lock-path=/var/lock/subsys/nginx --user=nginx --group=nginx --with-file-aio --with-ipv6 --with-http_ssl_module --with-http_spdy_module --with-http_realip_module --with-http_addition_module --with-http_xslt_module --with-http_image_filter_module --with-http_geoip_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_degradation_module --with-http_stub_status_module --with-http_perl_module --with-mail --with-mail_ssl_module --with-pcre --with-debug --add-module=/builddir/build/BUILD/nginx-1.4.7/modsecurity-apache_2.7.7/nginx/modsecurity --add-module=/builddir/build/BUILD/nginx-1.4.7/ngx_cache_purge-2.1 --with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' --with-ld-opt=-Wl,-E

Re: mod_security got removed in nginx-1.4.7-18.el6.art.x86_6

Posted: Sun Apr 13, 2014 6:56 pm
by scott
I'd also like to add that we have nginx specific modsecurity WAF rules available now too.