[plt-scheme] plt-web-server configuration
On Sun, 26 Oct 2008 02:13:22 +0200
Marek Kubica <marek at xivilization.net> wrote:
> On Sat, 25 Oct 2008 22:08:30 +0100
> "Noel Welsh" <noelwelsh at gmail.com> wrote:
>
> > On Sat, Oct 25, 2008 at 7:18 PM, Marek Kubica
> > <marek at xivilization.net> wrote:
> >
> > > Maybe I was a bit unclear. I would like to get it programmatically
> > > and change it.
> >
> > Have you looked at instaweb? Perhaps it does what you want.
>
> I just took a look into the documentation - looks promising. I'll try
> it out tomorrow, thanks for the information.
Ok, I tried it, but as far as I see it is meant to serve single
servlets in an easy way. What I want is basically the same as what
plt-web-server does, serving all servlets (and htdocs etc.) from some
web-root.
Si I'm still stuck at the web-config@, which I converted from my
configuration-table.
launcher.ss contains the following:
(define-compound-unit launch@
(import (T : tcp^))
(export S)
(link
[((C : web-config^)) configuration@]
[((S : web-server^)) web-server@ T C]))
(define-values/invoke-unit
launch@
(import tcp^)
(export web-server^))
So configuration@ returns a web-config@ and that one is somehow applied
to a web-server@ along with a tcp^. But what does it mean? I only want
a simple launcher, not something as elaborated as this is.
regards,
Marek