Manage firewall on nginx as well as apache
Fix logic when not using mariadb