How to analyze Nginx configuration files for security misconfiguration on Linux/ Unix

Originally published at: https://www.cyberciti.biz/faq/howto-analyzing-nginx-config-for-security-misconfiguration-with-gixy-tool/

How do I install Gixy for Nginx configuration static analyzer on GNU/Linux operating system to to prevent security misconfiguration and automate flaw detection?