I've finished modifiying the AppServer to handle multiple "services" and
virtual hosts, and redoing the HTTP server functionality.
The changes are large enought that I'd like some folks to look it over
before I commit it. Anyone who has some time to look at it, please let
me know.
The changes are almost entirely in the AppServer and ThreadedAppServer
classes and the AppServer.config file. The way it works is, in the
AppServer.config, you specify any number of RequestHandler classes which
implement services, a service meaning it is listening on a certain port.
You can also specify any number of "applications", which a service can
use if it needs to. For each service, there will be multiple instances
of the RequestHandler class for that service. For each "application",
there will be only one instance of the application class. Services can
specify which application they will use. For the default service
classes, which are WebKitRequestHandler and HTTPRequestHandler, you can
specify any number of hosts, each mapped to an application.
One little wrinkle arose from all this, and that's the use of
address.text. With multiple ports, which one goes into address.text? I
suggest dropping the use of address.text. It is really only used in
WebKit.cgi, and you already have to edit that file to specify the WebKit
directory. Why not just specify the host:port instead.
Anyway, let me know if you can take a look at this. It will probably be
easiest to just send out a complete tarball.
Jay
_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-devel