Skip to content
This repository has been archived by the owner on Jan 8, 2022. It is now read-only.

njlg/mod_sq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mod_sq

Apache module for running Squirrel files

Build Status

Overview

Mod_sq is an Apache web server module that will handle creating a Squirrel virtual machine, setting up a few globals and functions, and running the request Squirrel script (e.g. nut) through the virtual machine.

Build

To build and install mod_sq:

  • Make sure you have Apache and Squirrel installed and all the headers and libraries installed.
  • Run 'autoreconf -vfi'
  • Run './configure'
  • Run 'make'
  • Run 'make install'

Setup

  • Add the following lines to your Apache configuration: LoadModule squirrel_module modules/mod_sq.so AddHandler application/x-httpd-sq .nut DirectoryIndex index.nut
  • Restart Apache
  • Copy the example nuts (either from Squirrel or mod_sq) to somewhere in your htdocs area
  • Point your browser to one of the example nuts

Addendum

mod_sq Homepage: http://github.com/njlg/mod_sq

Squirrel Homepage: http://squirrel-lang.org

About

Apache module for running Squirrel programs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published