[plt-scheme] plt-web-server configuration

From: Marek Kubica (marek at xivilization.net)
Date: Sat Oct 25 09:44:40 EDT 2008

Hi,

I am trying to set up the PLT web server so that it works for me. For
that I need some adjustments to the default configuration.

Currently, the server is using the path
/home/marek/plt/lib/plt/collects/web-server/default-web-root/
for everything.

But I want to tell the server always to start on port 4113, listen on
localhost, serve servlets from my own servlet directory, use a specific
prefix (the URL to my Apache, which then forwards to PLT) for the
automatically generated URLs etc.

I saw that plt-web-server accepts the -f option and found out what the
current configuration-table is:

((port 80)
 (max-waiting 40)
 (initial-connection-timeout 30)
 (default-host-table
  (host-table
   (default-indices "index.html" "index.htm")
   (log-format parenthesized-default)
   (messages
    (servlet-message "servlet-error.html")
    (authentication-message "forbidden.html")
    (servlets-refreshed "servlet-refresh.html")
    (passwords-refreshed "passwords-refresh.html")
    (file-not-found-message "not-found.html")
    (protocol-message "protocol-error.html")
    (collect-garbage "collect-garbage.html"))
   (timeouts
    (default-servlet-timeout 30)
    (password-connection-timeout 300)
    (servlet-connection-timeout 86400)
    (file-per-byte-connection-timeout 1/20)
    (file-base-connection-timeout 30))
   (paths
    (configuration-root "conf")
    (host-root ".")
    (log-file-path "log")
    (file-root "htdocs")
    (servlet-root ".")
    (mime-types "mime.types")
    (password-authentication "passwords"))))
 (virtual-host-table))

Now, how can I load this configuration table, modify some values like
the servlet-path and feed it into the web server?

regards,
Marek


Posted on the users mailing list.