Dossy wrote:
How do people feel about this? Is glob matching wanted enough to incur
that per-request cost -- only if you're configured for software virtual
hosting, of course.
Actually, my company is using a different approach to vhosting (I do
this for docroot, but this method could be used here as well).
We call Tcl proc for determining vhost->docroot relation. Since it would
be WAY too slow to call Tcl proc on every connection, we have an
Ns_Cache for storing docroots. There's almost no impact, except for a
very small memory consumption. If one would cry over locking, then I
suggest a two-level cache - per-thread one (no locking, more memory
consumption) and global one.
ps. This way we could even use a Tcl proc to resolve vhost->server. By
default it would read nssock/servers section of the configuration.
Tcl+cache should be faster than globbing on every request :)
--
WK
--
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.