Lighttpd as a Python fastcgi.server

Joined
Mar 1, 2010
Messages
3
Reaction score
0
Hi guys.

Unfortunately I'm having trouble understanding "Python FastCGI on lighty with flup" instructions in
http: // redmine.lighttpd.net/wiki/lighttpd/Docs:ModFastCGI

"bin-path" => "/usr/local/bin/test.py" intercepts any .py file I deploy in the lighty root path and always returns

"Hello World!"
How can I modify test.py so it knows how to correctly serve any .py file?
(I've installed flup-1.0.2 )

my partial /etc/lighttpd/lighttpd.conf
fastcgi.server = ( ".php" =>
( "localhost" =>
(
"socket" => "/tmp/lighttpd/php-fastcgi.socket",
"bin-path" => "/usr/bin/php-cgi",
"max-procs" => 2,
)
),
".py" =>
(
"python-fcgi" =>
(
"socket" => "/tmp/lighttpd/fastcgi.python.socket",
"bin-path" => "/usr/local/bin/test.py",
"check-local" => "disable",
"min-procs" => 1,
"max-procs" => 1,
)
)
)

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,967
Messages
2,570,148
Members
46,694
Latest member
LetaCadwal

Latest Threads

Top