[mod-lisp-devel] Re: mod_lisp demultiplex to 2 backends

Marc Battyani marc.battyani at fractalconcept.com
Sat Aug 20 09:04:58 UTC 2005


Mac Chan wrote:

>Hi Marc,

Hi Mac,

>Sorry to bother you directly, since I can't find a dev mailing list
>for mod_lisp.

There is one, but unfortunately it is spelled mod-lisp-devel instead of
mod_lisp-devel, this is probably why you missed it. Here it is:
http://common-lisp.net/cgi-bin/mailman/listinfo/mod-lisp-devel
(I've CCed this email to it.)

>If there a way to configure mod_lisp demultiplex the incoming request
>to different backends based on the /location directive or the
>AddHandler directive?

Yes, sure ;-)

>Currently I have the following config to play around with ucw and tbnl.
>However, I can only use one framework at a time.
>
><IfModule mod_lisp.c>
>    LispServer  127.0.0.1 3000 "localhost"
>    AddHandler lisp-handler .ucw
>    AddHandler lisp-handler .tbnl
>    <Location /ucw>
>        SetHandler lisp-handler
>    </Location>
>    <Location /tbnl>
>        SetHandler lisp-handler
>    </Location>
></IfModule>
>
>It would be nice if I could do the following, since something is
>rather neat to implement in ucw. But ucw is not very mature, so I can
>want to implement the majority of the *boring* stuff in tbnl, which is
>very polished piece of code.
>
>Any help would be appreciated. If it is not currently supported, I'd
>appreciate any pointers  how to hack mod_lisp to do what I want. And
>I'll try my best to contribute to your great mod !

Thanks but it's already there. Just put LispServer directives in the
location description.
This should work:

<IfModule mod_lisp.c>
    LispServer  127.0.0.1 3000 "localhost"
    <Location /ucw>
        LispServer  127.0.0.1 3042 "localhost"
        SetHandler lisp-handler
    </Location>
    <Location /tbnl>
        SetHandler lisp-handler
    </Location>
</IfModule>

Marc





More information about the mod-lisp-devel mailing list