Comments on How to Install Nginx with ModSecurity on Ubuntu 15.04

In this tutorial, I will show you how to install mod_security for the fast Nginx web server on Ubuntu 15.04. I will configure ModSecurity as a standalone module and then build Nginx from source to include ModSecurity.

14 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: PCFreak

Good tutorial. I use a custom nginx server with rtmp-module for streaming. I took your systemd configuration and applied it to my installation, thanks for that.

By: indy chery

Can I install this on Ubuntu 14.04 server?  Thanks

By: pritesh

Command not found error is shown for :

# systemctl daemon-reload

systemctl: command not found

I am using ubuntu 14.04, is that the issue?

By: Alebeta

Hello friends!

 

Some one have modsec working perfectly? because the default rules blocks in my WP a lot of the funtions.

 

Have a nice day

By: Prateek

...does not work.

systemctl: command not found

By: till

Are you sure that you have Ubuntu 14.04 installed and not a different Ubuntu version?

By: wales

Worked like a charm... Awesome post...

By: hakase

systemctl command not found on Ubuntu 14.04, because ubuntu 14.04 is using sysvinit as service configuration.

And on 15.04 version, now use systemd as service configuration.

systemctl wordk on sysytemd operatingsystem.

By: ami

how to add white list to reverse nginx?

By: Abhishek

wget http://nginx.org/download/nginx-1.8.0.tar.gz

add 

tar -zxvf nginx-1.8.0.tar.gz

By: Graham

Dead at step 4 "Can't exec "aclocal" no such file, autoreconf failed to run"

These sort of posts need to auto expire because they are a waste of time.

By: Tom

This post tells you in the title that it is for Ubuntu 15.04 only and not for any other Ubuntu versions. Are you sure that you use the right Ubuntu version and not e.g. Ubuntu 16.04?

By: Dino

Good tutorial, I got it mostly working howerver, I'm getting a bunch of these errors in my error.log file and I'm trying to figure out why. Pages are not loading correctly. Any insight would be great:

Execution error - PCRE limits exceeded (-8)

 

By: ken

Sorry, section 4 does not work