[Bese-devel] Development/Production Environment

Ties Stuij cjstuij at gmail.com
Wed Aug 2 21:14:23 UTC 2006


>It would be really great if
> someone could document or "video-record" how to setup up ucw with
> Apache and mod_lisp.

this works for me:

You can choose between apache 1 and 2. First of course you have to
have a Apache web server up and runnnig; then you have to add the
mod-lisp module by Marc Battyani which you find at
http://www.fractalconcept.com/asp/html/mod_lisp.html

First download the mod_lisp c file. Watch out, don't follow the logic
of the website. Except for the windows version the info is outdated
concerning the apache 1 version and info about apache 2 is
non-existent. Go to subversion from the download page or click the
links below:

    * apache 1 .c file - mod_lisp.c
    * apache 1 binaries for windows - there is a link on the site for
version 2.32 but it leads to nowhere
    * apache 2 .c file - mod_lisp2.c
    * apache 2 windows binary - mod_lisp2.zip

As stated in the intro, if you want to use ucw on a windows machine
you're on your own. I have got no experience or information.

If you went for the c module on a unix clone, use the command.

apxs -i -c mod_lisp.c


or

apxs2 -i -c mod_lisp2.c


for respectively apache 1 or 2. This will install the module in the
appropriate apache directory. Debian users using apt-get should get
one of the apache dev versions to get apxs(2) installed. Then add the
following lines to 'httpd.conf' or other relevant configure file in
your apache configuration directory for both apache 1 and 2. Just be
sure to change mod_lisp.so to mod_lisp2.so for apache 2.

LoadModule lisp_module /path/to/modules/directory/mod_lisp.so


LispServer 127.0.0.1 3001 ucw


<LocationMatch "/path/.*\.ucw">
               SetHandler lisp-handler
</LocationMatch>


This means that ucw INTERNALLY talks to apache on port 3001 at the
internet address 127.0.0.1 (so in this case your localhost). The
locationmatch part redirects all traffic from (in this case) 127.0.0.1
with prefix "/path/" and files ending on .ucw to ucw. So
http://127.0.0.1/path/something.ucw as well as
http://127.0.0.1/path/anotherpath/somethingelse.ucw will be
redirected, but not http://127.0.0.1/somethingfaulty.ucw or
http://127.0.0.1/path/somethingfaulty.html .

greets,
Ties



More information about the bese-devel mailing list