55 lines
1.6 KiB
Text
55 lines
1.6 KiB
Text
===========================================================================
|
|
$NetBSD: MESSAGE,v 1.2 2012/11/20 16:55:35 othyro Exp $
|
|
|
|
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):
|
|
|
|
# for Unixes and similar
|
|
LoadModule lisp_module lib/httpd/${MODNAME}.so
|
|
# for Win32
|
|
LoadModule lisp_module modules/mod_lisp.dll
|
|
|
|
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 SetHandler 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 this:
|
|
|
|
[...]
|
|
LoadModule lisp_module lib/httpd/${MODNAME}.so
|
|
[...]
|
|
ClearModuleList
|
|
[...]
|
|
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.
|
|
|
|
===========================================================================
|