Version 9 of Virtual Hosts in Tclhttpd

Updated 2006-03-06 03:00:32

(add configuration details for setting up virtual hosts in tclhttpd)


There is now a Virtual Host mechanism. You can load additional configuration files for different servers, and they are processed in different Tcl interpreters within your main server application.

The relevant commands in the httpd package appear to be:

 Httpd_VirtualHost host file 

Initialize a virtual server. The file is an alternate config file, (e.g., "tclhttpd.rc"). The pages for each virtual server are processed inside their own safe interpreter.

 Httpd_VirtualHosts hostNames file

Like Httpd_VirtualHost except that the first argument is a list of host names. All of these share the same config file.


[ Category TclHttpd ]