Customising the default kdb+ webserver
Without changing anything in kdb+ you can make a kdb+ session serve up static content by creating a directory called "html" underneath your QHOME directory. This is the root server for the webserver (like the apache /var/www/html) and is the place to save static content to be served up from kdb+. Try for example saving a favicon.ico file there and calling up a page.
The default location can be changed by setting the variable .h.HOME.
Every http request that comes into a kdb+ session is handled by .z.ph. By default it simply wraps the output from showing the data requested inside a fixed width tag (xmp) and sends it back. This is fast and simple, and will work in all browsers - even internet explorer - but makes it very difficult to apply any CSS styling to the data.