jdp / io-scgi

An implementation of SCGI for the Io programming language

This URL has Read+Write access

jdp (author)
Wed Dec 17 03:45:35 -0800 2008
commit  a1a46601395d59d16c1d814de8e63969a59d4ae8
tree    fe91dfe9a00e034cb7f695223ee164b34135cb1f
parent  04faed281e44e158d8dd64eb29a36489f6dd5756
name age message
file .gitignore Wed Dec 17 03:45:35 -0800 2008 Cleaning up [jdp]
file Netstring.io Tue Dec 16 23:50:38 -0800 2008 First commit [jdp]
file README Wed Dec 17 03:44:04 -0800 2008 Fixed SCGIServer to not require init [jdp]
file SCGIHandler.io Tue Dec 16 23:50:38 -0800 2008 First commit [jdp]
file SCGIServer.io Wed Dec 17 03:44:04 -0800 2008 Fixed SCGIServer to not require init [jdp]
file example.io Wed Dec 17 03:44:04 -0800 2008 Fixed SCGIServer to not require init [jdp]
README
IO SCGI
=======

SCGI is a CGI replacement that is just as fast as FastCGI, but simpler to
implement. Most modern web servers support this protocol. Read about it at:

  http://www.mems-exchange.org/software/scgi/
  http://python.ca/scgi/
  
This is a small implementation of the SCGI protocol for Io, which allows you
to write blazing-fast internet applications.

WHAT'S NEW
==========

This is a very early release, with only extremely minimal functionality. The
goal is to one day turn use this as a base for an Io web framework, but for
now it's a proof-of-concept.

HOWTO
=====

USE WITH LIGHTTPD
    
Lighttpd comes packaged with a mod_scgi. Open your lighttpd.conf and add
mod_scgi to your server.modules. It's not in the list by default, so don't get
scared when you notice it's not one of the commented out modules. Just add it.

Then add this to your config:

scgi.server = (
  "/your-scgi-app" => (
    "localhost" => (
      "host" => "127.0.0.1",
      "port" => 4000,
      "check-local" => "disable"
    )
  )
)

Where /your-scgi-app is the directory on your document root that you want to
serve SCGI applications from.

Finally, set up your SCGI server. A bare-bones implementation is packaged in
example.io. To start it up, just cd to its directory and run it. After you
run it, go to http://your.web.host/your-scgi-app, and you should see a nice
message. If you have, everything is working fine.

Justin Poliey <jdp34@njit.edu> 2008