You will find this exceedingly easy in AOLserver. I have written several myself. You could check out VAT: <http://zmbh.com/vat/>,
Good
which expanded on tclvhr: <http://zmbh.com/tcllvhr/>
This one seems to be now as 404... Anyone here have clues where I can find it ?
or a very simple, file based system described in: <http://zmbh.com/nsrewrite/doc/nsrewriteurl.html>.
Thanks :)
The first two use the config file, so you would have to restart the server. The last only requires the creation of the host directory, and the ability to set DNS entries correctly for the new domain. In every case, you could easily add database storage to allow 'no restart' configuration.
This is what I'd like to do, this is very interressing lecture and code.
Now I have to understand it, and adapt it for mod_vhs compatible system :)
As a matter of fact, if you ever heard of MyDomain.com, this was a perfect example of mass(ive) virtual hosting using AOLserver. The virtual hosting software consisted of a single, very short page, which looked up the configuration information. At one time they approached 500k domains in the system, which pushed AOLserver onto the Netcraft map. There were no local directories in the system, but it allowed users to redirect to their own website, or to wrap their page in a frame (done automatically) to pull up data stored anywhere on the internet. You could provide a home page, which was stored in the database.
;-) Good :)
Bottom line: AOLserver is great for mass virtual hosting of the sort I have described: static, database dynamic or offsite redirects. It is less helpful for file based dynamic sites since you will likely have to rely on plain old CGI. The built in Tcl scripting and adp (AOLserver Dynamic Pages) share memory between requests and over the life of the server and system user/group. So you would need to carefully control what your users are allowed to run, otherwise they could mess with each other and with the server operation. Using separate AOLserver virtual hosts will not work on a massive scale since each virtual host requires a lot of memory, and requires time to start up. It also requires a restart to add virtual hosts.
Yeah that's why I want to use it... and also to find a solution to drop the apache system needed for PHP... But this will be another story :)
/Xavier
-- AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.