Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Lighttpd as a Python fastcgi.server

Reply
Thread Tools

Lighttpd as a Python fastcgi.server

 
 
pythonZen pythonZen is offline
Junior Member
Join Date: Mar 2010
Posts: 3
 
      09-03-2010
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
Quote:
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Attempting to get lighttpd, fastcgi & python working venkatbo@yahoo.com Python 0 03-24-2006 07:34 PM
Lighttpd/rails deployment error phil swenson Ruby 1 12-22-2005 10:23 PM
Rails with Lighttpd or Apache Rawn027 Ruby 1 12-16-2005 09:00 PM
Ruby and Lighttpd/FastCGI RĂ¼diger Sonderfeld Ruby 2 07-17-2005 02:23 PM
fastcgi + lighttpd ? oxman Ruby 4 05-09-2005 10:33 PM



Advertisments