6 Web Config Unit
The Web Server offers a unit-based approach to configuring the server.
6.1 Configuration Signature
web-config^ : signature |
Provides contains the following identifiers.
Passed to tcp-accept.
virtual-hosts : (listof (cons/c string? host-table?))
Contains the configuration of individual virtual hosts.
Contains initially loaded servlets.
Specifies the initial timeout given to a connection.
port : port-number?
Specifies the port to serve HTTP on.
Passed to tcp-accept.
make-servlet-namespace : make-servlet-namespace?
Passed to servlets:make.
6.2 Configuration Units
| ||||||||||||||||||||
→ (unit? web-config^) | ||||||||||||||||||||
path : path? | ||||||||||||||||||||
|
Reads the S-expression at path and calls configuration-table-sexpr->web-config@ appropriately.
| ||||||||||||||||||||||||
→ (unit? web-config^) | ||||||||||||||||||||||||
sexpr : list? | ||||||||||||||||||||||||
| ||||||||||||||||||||||||
|
Parses sexpr as a configuration-table and constructs a web-config^ unit.