[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua + cgilua + lightttpd
- From: Sean Conner <sean@...>
- Date: Mon, 5 Aug 2013 00:14:37 -0400
It was thus said that the Great Henrique Gogó once stated:
> One solution that I found was use simple cgi configuration on lighttpd.
> No cgilua, no fastcgi, no dependencies, just enabled cgi module in lighttpd
> and added:
>
> cgi.assign = (
> ".lua" => "/usr/bin/lua",
> )
>
> But I've been read that cgi is too slow, and FastCGI is better.
> "Pure cgi" is too bad to use? I think so simple and fast to configure that
> I'm thinking use this approach to start my web application.
Unless you are seeing HTTP 500 responces to requests, or the host the
webserver is running on has an extemely high load, then CGI is the simplist
thing that can work. My own blog (http://boston.conman.org/) is generated
and served up via CGI [1] and I've never had an issue with a high system
load.
At the very least, it will get you up and running while you investigate
other methods of running your site.
-spc (You might be surprised at how far plain CGI can get you ... )
[1] Actually, the main page (index.html) and the two data feeds
(index.atom and bostondiaries.rss [2]) are rendered as static pages.
When you click on a individual post, however, the page is generated
via a CGI-based program.