Nginx won't execute Python scripts


  • | 180 points

    I've installed Python 3.6.1 (using Menu -> Tools -> Quick add -> python-3.6), and then when I try to run any .py script via a web browser, I get the browser's prompt to Open or Save the .py file.

    So, Nginx isn't executing the script. I searched the forums and there are instructions on adding a .py handler for Apache, but I couldn't find any instructions for Nginx.

    Does anyone know how to execute Python scripts in Nginx?


  • | 180 points

    After researching this problem, I've realized that in order to run Python scripts in Nginx, I need to install WSGI (which doesn't seem supported for Windows), or configure Fast-CGI to support Python.

    Does anyone have any instructions or tips on configuring Fast-CGI to support Python? :)


Log in to reply
 

Looks like your connection to Laragon was lost, please wait while we try to reconnect.