[plt-scheme] plt-web-server configuration

From: Jay McCarthy (jay.mccarthy at gmail.com)
Date: Sat Oct 25 10:38:19 EDT 2008

On Sat, Oct 25, 2008 at 7:44 AM, Marek Kubica <marek at xivilization.net> wrote:
> 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?

Copy the file to a new location.
Change the appropriate values.
Start running the web-server via "plt-web-server -f your/new/config"

The docs (Sec 1 on running and Sec 5 on the config format) may be useful.

I feel like I'm misunderstanding your question.

Jay

>
> regards,
> Marek
> _________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>



-- 
Jay McCarthy <jay at cs.byu.edu>
Assistant Professor / Brigham Young University
http://jay.teammccarthy.org

"The glory of God is Intelligence" - D&C 93


Posted on the users mailing list.