On most webserver configurations, .php
files are automatically processed when a user accesses a php file, using php-fpm
.
I'd like to do a similar thing for Flask apps on my nginx
server, so that when a user accesses a .py
file or a directory with an index.py
file, the Flask app is automatically run.
What config would be necessary for this, under a nginx
server on Ubuntu?