EnglishFrenchSpanish

OnWorks favicon

wsapi.fcgi - Online in the Cloud

Run wsapi.fcgi in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command wsapi.fcgi that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


wsapi.fcgi - fast cgi wrapper for wsapi based dynamic pages

SYNOPSIS


FCGIWrapper wsapi.fcgi .lua

DESCRIPTION


If you are using Apache, you may want to add the following lines to define an hanler for
.lua files:

AddHandler fcgid-script .lua
FCGIWrapper /usr/bin/wsapi.fcgi .lua

A sample dynamic page follows:

#!/usr/bin/env wsapi.fcgi

module(..., package.seeall)

function run(wsapi_env)
local headers = { ["Content-type"] = "text/html" }

local function hello_text()
coroutine.yield("<html><body>")
coroutine.yield("<p>Hello Wsapi!</p>")
coroutine.yield("<p>PATH_INFO: " .. wsapi_env.PATH_INFO .. "</p>")
coroutine.yield("<p>SCRIPT_NAME: " .. wsapi_env.SCRIPT_NAME .. "</p>")
coroutine.yield("</body></html>")
end

return 200, headers, coroutine.wrap(hello_text)
end

Use wsapi.fcgi online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

Linux commands

  • 1
    a2crd
    a2crd
    a2crd - attempts the conversion of
    lyrics file into chordii input ...
    Run a2crd
  • 2
    a2j
    a2j
    a2j - Wrapper script to simulate
    a2jmidid's non-DBUS behaviour though
    a2jmidid actually being in DBUS mode ...
    Run a2j
  • 3
    cowpoke
    cowpoke
    cowpoke - Build a Debian source package
    in a remote cowbuilder instance ...
    Run cowpoke
  • 4
    cp
    cp
    cp - copy files and directories ...
    Run cp
  • 5
    gbnlreg
    gbnlreg
    gbnlreg - Non linear regression ...
    Run gbnlreg
  • 6
    gbonds
    gbonds
    gbonds - U.S. savings bond inventory
    program for GNOME ...
    Run gbonds
  • More »

Ad