----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

We are doing this - our approach is to use the same JServ zone for may hundreds
of sites, and then use the HTTP 1.1 "Host" header in the servlet to separate the
site behaviour (by changing data sets); we use the MultiThreadedModel, so all
our servlets are just static code blocks, and we use data management classes
(single instanced with hashtables) for caching the sites' data in the VM 


e.g.


<VirtualHost thisserver:80>
        NameVirtualHost foo.bar.com
        (stuff...)
        ApJServMount /site /foo
</VirtualHost>

<VirtualHost thisserver:80>
        NameVirtualHost wibble.co.uk
        (stuff...)
        ApJServMount /site /foo
</VirtualHost>




and



   servername = req.getHeader("Host");

   rs = stmt.executeQuery("select site_id from site_host_map where site_name='" 
        + servername +"'");
etc.


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search Archives: 
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to