Whether you use PHP, Python, or any other CGI application, you should now have a clear idea of how to get your scripts processed behind Nginx. There are all sorts of implementations on the Web for mainstream programming languages and the FastCGI protocol. Due to its well-acknowledged efficiency, it is starting to take over server-integrated solutions such as Apache's
mod_wsgi, and many others.
If you are unsure about connecting Nginx directly to those server applications, because you already have a well-functioning system architecture in place (for example, Apache with
mod_php), you may want to consider the option offered in the next chapter, Installing Nginx on top of Your Existing Apache Setup.