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

General Discussion of atomic repo and development projects.

Ask for help here with anything else not covered by other forums.
mmpower
New Forum User
New Forum User
Posts: 2
Joined: Thu Apr 10, 2014 11:56 am
Location: VA

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

Unread post 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?
freethought
Forum User
Forum User
Posts: 6
Joined: Sun Aug 30, 2009 8:25 am

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

Unread post 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
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

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

Unread post by scott »

I'd also like to add that we have nginx specific modsecurity WAF rules available now too.
Post Reply