How to implement Virtual Hosts on Screws:
=========================================

Virtual hosts are implemented in Screws using scripting, by this
way you must check the HOST env-var and separate petitions, or
just modify HTDOCS working directory and follow with the petition:

In the last release I define a new env-var called "LISTEN_HOST"
that is just the same of "HOST", but could be that some day "HOST"
env-var dissapear.

-- example --
#!/bin/sh

if [ "${HOST}" = "example.org" ]; then
	HTDOCS="$PWD/example"
else
	HTDOCS="$PWD/default"
fi

if [ "${METHOD}" = "GET" ]; then
	cat "${HTDOCS}/${FILE}"
fi
-- example --

Of course that's a simple example ...and will be nice to use regexp,
and check every var to disable security-flaws.
