STML Examples

There are three different examples:

Starting the Tycoon-2 Httpd Server

Create and edit the configuration file (change path of document root, change port - to avoid conflicts with other users, and set your user name):
cd $HOX_HOME
cd tyhttpd/tyhttpd-examples/conf
cp tyhttpd.conf.example tyhttpd.conf
Load the sources:
tycoon.tl.loader.registerDirectory("WWW/HttpdExamples");
tycoon.tl.loader.update;
tycoon.tl.typeChecker.check;
Create the server:
DO load "WWW/HttpdExamples/launch-examples.tyc";
Start the server:
tyhttpd.serve;
Now take a look with your browser (use the port number of your server):
http://sun02.sts.tu-harburg.de:<port number>/entry.html

Tycoon-2 Administrator / 22.10.97