Any idea, how to enable mod_security on apache having aapanel?
Aapanel does not integrate this module, you need to manually install and configuration. For details, please refer to this.
I have nginx, i need modsecurity too, or this is only for Apache?
Nginx also has a manual installation .