I'm trying to add new module to nginx with naxsi, but I should reinstall nginx. What is the better way of removing nginx?
sudo apt-get remove nginx nginx-common # Removes all but config files.
sudo apt-get purge nginx nginx-common # Removes everything.
sudo apt-get autoremove # After using any of the above commands, use this in order to remove dependencies used by nginx which are no longer required.