Hi Will,

the problem is, that when I put directories or .war files in webapps, the
context is added to
all virtual hosts. But I need individual contexts for each virtual host.

Any ideas?

Thanks

stefan



                                                                                       
                                      
                    Will England                                                       
                                      
                    <will@mylande        An:     [EMAIL PROTECTED]        
                                      
                    rs.com>              Kopie:                                        
                                      
                                         Thema:  Re: Multiple virtual host with 
individual webapp dirs , one tomcat          
                    18.07.01                                                           
                                      
                    19:49                                                              
                                      
                    Bitte                                                              
                                      
                    antworten an                                                       
                                      
                    tomcat-user                                                        
                                      
                                                                                       
                                      
                                                                                       
                                      




On Wed, 18 Jul 2001 [EMAIL PROTECTED] wrote:

> Is it possible to give every single vhost his own webapp-dir where
> developpers can put
> new contexts, which are automatically added after restarting tomcat so no
> editing of server.xml
> is required.

If you want to *change* the code in a context, you can do this just by
adding the new class files under the WEB-INF directory.

If you want to add a *new* context that didn't already exist, you have to
edit the server.xml file.

One other option is to have the developers jar up the whole application
and deploy it to TOMCAT_HOME/webapps as a .war file.

Then, no changes are needed to server.xml; tomcat just reads and expands
the .war file and runs with it.  Never did this, not sure how well it
works.

Will






Reply via email to