在大多数networking服务器configuration中, .php文件在用户使用php-fpm访问php文件时自动处理。
.php
php-fpm
我想为我的nginx服务器上的Flask应用程序做类似的事情,以便当用户访问.py文件或带有index.py文件的目录时,Flask应用程序会自动运行。
nginx
.py
index.py
在Ubuntu的nginx服务器下,需要什么configuration?