Yesterday I was determined to get lighttpd configured for python. When I did a search I got results that talked about hooking it through fastcgi and having a script start up the python process on a certain port etc...
I ended up looking around for hours and could not get it to work.
I finally consulted a well configured server for a client and discovered how they do it.. and if I had known ahead of time.. I could have had it done in about 10 seconds.
I thought I'd share so others could avoid the endless searching which brought me frustration.
As it turns out fastcgi is not needed at all for python to work hand in hand with lighttp. Lighttpd just needs to have the cgi module enabled. So on my Ubuntu 8.04 box in /etc/lighttpd/conf-enabled/ I sym link back to /etc/lighttpd/conf-available/10-cgi.conf . That enables the cgi module in lighttpd.
If you look inside that file you'll see a few items.. but of note is this:
cgi.assign = (
".pl" => "/usr/bin/perl",
".php" => "/usr/bin/php-cgi",
".py" => "/usr/bin/python",
)
That is where it ties in requests for python (py) files with the python interpreter. It also allows php and perl to use the same methodology.
After validating the paths are routed properly you should be able to restart lighttpd and be off and running with python.
Good luck!
dfdfdf
UGGS ON SALE,We provide large stock of UGGS UK and all the UGG Boots are free shipping worldwide!such as
UGG Bailey Button Boots 5803
UGG Classic Argyle Knit 5879
UGG Classic Bomber Jacket 5804
UGG Classic Cardy Boots 5819
UGG Classic Crochet Boots 5833
UGG Classic Flower boots 5802
UGG Classic Mini Boots 5854
UGG Classic Paisley Boots 5831
UGG Classic Short Boots 5825
UGG Classic Short Metallic 5842
UGG Classic Tall Boots 5815
UGG Classic Tall Metallic 5812
UGG Coquette Boots 5125
UGG Langley Boots 5608
UGG Liberty Boots 5509
UGG Lo Pro Button Boots 5691
UGG Locarno Boots 5191
UGG Mayfaire Boots 5116
UGG Nightfall Boots 5359
UGG Roxy Tall Boots 5818
UGG Seline Boots 5595
UGG Suburb Crochet Boots 5124
UGG Suede Boots 5230
UGG Sundance II Boots 5325
UGG Tall Adirondack Boots 5498
UGG Tall Patent Paisley 5852
UGG Tall Romantic Flower 5802
UGG Tall Stripe Cable Knit 5822
UGG Ultimate Bind Boots 5219
UGG Ultra Short Boots 5225
UGG Ultra Tall Boots 5245
UGG Upside Boots 5163
UGG Felicity Boots 5450
UGG Gissella Boots 5593
UGG Payton Boots 5654
GHD Hair
GHD Straighteners On Sale
We strive to be the best by providing excellent service and high quality products.