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
Thanks
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