You are here >  
  Franšais     

Compiling mod_lisp

just type: apxs -i -c mod_lisp.cthis will compile and install it.

Configuring Apache with mod_lisp

In the Apache config file (httpd.conf or apache.conf):

First, add the mod_lisp module (change the path to where you have put mod_lisp):
LoadModule lisp_module libexec/apache/mod_lisp.so (for unixes and similar)
LoadModule lisp_module modules/mod_lisp.dll (for Win32)

Then add a LispServer directive (LispServer ip-address-of-lisp-computer ip-port-of-lisp-process user-defined-name):

  • ip-address-of-lisp-computer is the ip address of the computer where the Lisp process is.
  • ip-port-of-lisp-process is the ip port of the computer where the Lisp process is.
  • user-defined-name is a string that will be passed from Apache to the Lisp process. It is useful when you have several virtual servers or directories, defined within an Apache server, to be processed by mod_lisp.
  • example: LispServer 127.0.0.1 3000 "fractal"

    Finally add a SetHanlder directive:
    <Location /asp>
    SetHandler lisp-handler
    </Location>
    All the url located in /asp (like /asp/index.html) will be sent to mod_lisp

    Your httpd.conf should be like that :
    ...
    LoadModule lisp_module        libexec/apache/mod_lisp.so
    ...
    ClearModuleList
    ...
    AddModule mod_lisp.c
    ...
    LispServer  127.0.0.1 3000 "fractal"
    ...
    <Location /asp>
    SetHandler lisp-handler
    </Location>
    ...

    if you use mod_ssl you should put this in your SSL directives:
    SSLOptions +StdEnvVars
    to have the ssl-session-id sent to the Lisp process

    Restart Apache and it should be OK.

    Creating Dynamic Websites with Lisp and Apache

    Chris Beggy has written a nice tutorial on how to use apache + mod_lisp + cmucl + lml + cl-ppcre + clsql + mysql.