English | Português

Kepler

Components

Tools

Related Sites

Sponsors

Blue PiL

   
The Fast CGI? launcher has been tested under Apache 2 (http://www.apache.org) and Lighttpd (http://lighttpd.net). We assume the web server has already been installed, along with its Fast CGI? module (included with Lighttpd, usually a separate download for Apache 2.

Configuration for Apache 2

Add the following lines to your httpd.conf (or to a kepler.conf file inside a the /etc/apache2/conf.d folder in some distributions):

<pre> Load Module? mod_fastcgi modules/mod_fastcgi.so <If Module? mod_fastcgi.c>
  Fast Cgi Server? /usr/local/bin/fastcgi
  Add Handler? kepler-fastcgi .lua
  Add Handler? kepler-fastcgi .lp
  Action kepler-fastcgi /cgi-bin/kepler

  <Location /cgi-bin/kepler>
    Set Handler? fastcgi-script
  </Location>
</If Module?> </pre>

/usr/local/bin/fastcgi is the Fast CGI? launcher compiled by the Kepler installation. Reload Apache, and all requests to .lua and .lp files will go through Kepler. Please check the Apache documentation for extra configuration options.

Configuration for Lighttpd

The following is a minimum lighttpd.conf for Lighttpd. It assumes that you want cgilua to handle .lua and .lp files:

<pre> server.modules = ( "mod_fastcgi" )

server.document-root = ( "/usr/local/kepler/web" )

fastcgi.server = ( ".lua" =>
                   ( "kepler" =>
                     ( "socket" => "/tmp/kepler-fastcgi.socket",
                       "bin-path" => "/usr/local/bin/fastcgi",
                     )
                   ),
                   ".lp" =>
                   ( "kepler" =>
                     ( "socket" => "/tmp/kepler-fastcgi.socket",
                       "bin-path" => "/usr/local/bin/fastcgi",
                     )
                   )
                  )
</pre>

/usr/local/bin/fastcgi is the Fast CGI? launcher compiled by the Kepler installation. Now run Lighttpd (lighttpd -f lighttpd.conf), and all requests to .lua and .lp files will go through Kepler. Please check the Lighttpd documentation for extra configuration options.

Recent Changes Last modified on November 25, 2005, at 03:48 PM Printable | Edit | History
Powered by PmWiki