Piyush Kumar - 2015-05-08

Hello Everyone,
I have installed Modsecurity and Nginx in a box using the following method
1. git clone git://github.com/SpiderLabs/ModSecurity.git
2. cd mod_security
3. ./autogen.sh
4. ./configure --enable-standalone-module --disable-mlogc
5. make

  1. wget http://www.nginx.org/download/nginx-1.8.0.tar.gz
  2. tar -xvpzf nginx-1.8.0.tar.gz
  3. cd nginx-1.8.0
  4. ./configure --add-module=../mod_security/nginx/modsecurity --with-http_ssl_module
  5. make
  6. make install

My Nginx configuration file looks like this:
server {
listen 80;
server_name xx.yy.com;

    #charset koi8-r;

    #access_log  logs/host.access.log  main;

    location / {
        ModSecurityEnabled on;
        ModSecurityConfig /usr/local/nginx/conf/modsecurity.conf;
        root   html;
        index  index.html index.htm;
        proxy_pass http://mysite.mydomain.com:8080;
    }

}

When I start my nginx server and opens xx.yy.com in a browser it gives me the following error:
The connection was reset

The connection to the server was reset while the page was loading.

The site could be temporarily unavailable or too busy. Try again in a few moments.
If you are unable to load any pages, check your computer's network connection.
If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.

The error log just says:
2015/05/08 00:32:04 [alert] 27771#0: worker process 27772 exited on signal 11
2015/05/08 00:32:04 [alert] 27771#0: worker process 27773 exited on signal 11
2015/05/08 00:56:11 [alert] 27771#0: worker process 27774 exited on signal 11

whereas If I do the following in nginx configuration:
server {
listen 80;
server_name xx.yy.com;

    #charset koi8-r;

    #access_log  logs/host.access.log  main;

    location / {
        #ModSecurityEnabled on;
        #ModSecurityConfig /usr/local/nginx/conf/modsecurity.conf;
        root   html;
        index  index.html index.htm;
        proxy_pass http://mysite.mydomain.com:8080;
    }

}

it works fine.
Can anyone please help me out with this?