Running any Python script through FastCGI?
Added by littlebigman over 12 years ago
Hello
This is a newbie question.
I currently have Lighttpd working for PHP through FastCGI.
Now, I'd like to add support for Python scripts, either basic or WSGI.
I find the example at the very end of this article puzzling because it mentions a specific script:
"bin-path" => "test.py"
How can I configure Lighttpd so that it'll run any .py script through FastCGI?
Thank you.
Replies (2)
RE: Running any Python script through FastCGI? - Added by stbuehler over 12 years ago
Your setup usually runs all php script with one FastCGI backend (the php-cgi binary), unless you configure different backends for different web users.
Python does not support this; the python interpreter itself is not a FastCGI application.
Instead some python scripts may be FastCGI applications, and you have to configure each of them separately.
RE: Running any Python script through FastCGI? - Added by littlebigman over 12 years ago
Thanks for the explanation. So it looks like I'll have to try either Gunicorn or uWSGI with Lighttpd.