Updated Debugging ModSecurity (markdown)

Chaim Sanders
2016-06-22 18:01:52 -04:00
parent 1b11950f7e
commit 80bfa04591

@@ -22,14 +22,14 @@ This setup may affect the behavior of the HTTP server in a way that makes imposs
## Nginx ## 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; daemon off;
master_process 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... CFLAGS="-g -O0" ./configure --with-debug ...normal paramanters...