Description
CGI support can be added to nginx for serving legacy or simple dynamic web programs. It is useful when a site still depends on CGI-style execution instead of a modern application server.
CGI execution can run server-side programs and expose security risks if paths or permissions are wrong. Use strict configuration and avoid untrusted scripts.