(home) Web Server Demonstrations (download)

You are already watching the OpenPSP server at work serving this site. In fact the server is virtual hosting a number of sites (www.dbbrowser.com is another) as the document root is selected automatically on the basis of the name and port used to browse to the site.

Coding Active Pages & Scripts
Scripts for OpenPSP can be either embedded in documents echo.psp (source) or as as traditional cgi scripts either unoptimised /cgi-bin/echo.pgi or compiled once into the server not needing to fork() /ecgi/echo.pgi (using same source).

Finally the "PGI" Perl gateway interface can be used where a the script is coded as method main of a perl module which is placed in the "pgi-lib" directory of the server code /echo (source). This script is then acting as a virtual directory on the server.

Simple PGI demonstrations
The server supports directory listings using the "ls" pgi module. As you can see a little perl goes a long way. By including a symbolic link in the document directory for this site is is possible to browse the source for this site.

Another pgi module is the "eterm" which allows access to UNIX from a windows desktop though only Internet Explorer seems to cope with its simultaneous frame updates (the username/password is ignored but it will be displayed). The server also has modules to debug itself and a browser for the modules used internally.

One final demonstration is the esql database browser which is the reason why this server was written but thats another story. Visit the sister site www.dbbrowser.com to see how this all comes together in a database developer tool.