diff --git a/Debugging-ModSecurity.md b/Debugging-ModSecurity.md index 2e47a51..9a0f35a 100644 --- a/Debugging-ModSecurity.md +++ b/Debugging-ModSecurity.md @@ -22,14 +22,14 @@ This setup may affect the behavior of the HTTP server in a way that makes imposs ## Nginx -Different from Apache where a parameter is expected to place the server in debugging mode, Nginx expects debugging information within the configuration files. To keep Nginx attacked to the console, a user can set **daemon** to **off**. Threads can be disabled by having **master_process** set to **off**. As demonstrated bellow: +Different from Apache where a parameter is expected to place the server in debugging mode, Nginx expects debugging information within the configuration files. To keep Nginx attached to the console, a user can set **daemon** to **off**. Threads can be disabled by having **master_process** set to **off**. As demonstrated below: ``` daemon off; master_process off; ``` -By having adding a directives similar to the above to Nginx's configuration, it will be executed as a single thread and it won't detach from the console. If the problem is not reproducible under these circumstances other techniques can be used as explained at: [http://wiki.nginx.org/Debugging](http://wiki.nginx.org/Debugging). Besides the debugging parameters that should be passed to gcc, it is also recommend to use the option **--with-debug** in the Nginx's configuration script. The recommended configuration options are illustrated bellow: +By adding a directives similar to the above to Nginx's configuration, it will be executed as a single thread and it won't detach from the console. If the problem is not reproducible under these circumstances other techniques can be used as discussed at: [http://wiki.nginx.org/Debugging](http://wiki.nginx.org/Debugging). Besides the debugging parameters that should be passed to gcc, it is also recommend to use the option **--with-debug** in the Nginx's configuration script. The recommended configuration options are illustrated bellow: ``` CFLAGS="-g -O0" ./configure --with-debug ...normal paramanters...