Sha256: d025eb97ad6425fa0038efad3fb8e99b947ac83c2bfca91114ce8358ff03d0f5
Contents?: true
Size: 873 Bytes
Versions: 3
Compression:
Stored size: 873 Bytes
Contents
#!/usr/bin/env ruby =begin This is a simple CGI adaptor that will allow one to use Iowa with any CGI capable web server without requiring any special permissions with regard to web server configuration. To install the Iowa CGI adaptor: - Copy this file into your cgi-bin directory. - Set up a url that invokes this script. In Apache, this involves adding something like this to your httpd.conf file: Action iowaGuestbook /cgi-bin/iowa_guestbook_adaptor.cgi <Location /guestbook> SetHandler iowaGuestbook </Location> Configuration of the script is simple. Simply replace the text below that reads, "[REPLACE_WITH_SOCKET_DEF]" with a valid socket definition that points to where your Iowa application is listening. =end require 'iowa/Client' iowa_socket = '[REPLACE_WITH_SOCKET_DEF]' client = Iowa::Client.new(iowa_socket) client.handle_request
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
IOWA-1.0.3 | src/iowa.cgi |
IOWA-1.0.2 | src/iowa.cgi |
IOWA-1.0.0 | src/iowa.cgi |