[Seaside] HTTP Server Structure
stephen at pairhome.net
Mon Nov 17 17:47:30 CET 2003
Sven Van Caekenberghe wrote:
> Thanks to the excellent tutorials, it was no problem to start building
> Seaside applications.
> I am however at a loss at how the larger HTTP server infrastructure
> (Comanche ?) works.
> Does there exist *any* good/recent documentation about this ?
> By looking at some code and wiki pages, there seem to be multiple HTTP
> For example, what is the right/simple way to serve some static files ?
> There seem to be several ways of doing it, but I can't get any of them
> to work reliably. Where can I learn more about this ?
For Comanche 6.2, the following will start an http file server on your
| ma |
ma := ModuleAssembly core.
ma serverRoot: FileDirectory default fullName.
ma documentRoot: FileDirectory default fullName.
ma directoryIndex: 'index.html index.htm'.
(HttpService startOn: 8080 named: 'httpd') plug: ma rootModule
The best docs for Comanche 6.2 (registered as KomHttpServer on
SqueakMap) are located in various class comments. Start with the class
comments for KomHttpServerInfo. Most (if not all) of the ComancheModule
subclasses also include helpful class comments with examples.
More information about the Seaside