tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ali Sadroudine <ali.sadroud...@toluna.com>
Subject Jonas Virtual host & webapps
Date Thu, 06 Jul 2006 22:21:09 GMT

is it possible for jonas to manage  multiple virtual host ?
i follow the example that it's figure on this forum 

http://www.nabble.com/Virtual-Hosting-with-WAR-files-tf227119.html#a634539

<Engine name="Catalina" defaultHost="localhost"> 
 <Host name="localhost" appBase="webapps" 
      unpackWARs="true" autoDeploy="true" 
      xmlValidation="false" xmlNamespaceAware="false"> 

  <Alias>foo.com</Alias> 
 </Host> 

 <Host name="file1.foo.com" appBase="/opt/file1.foo.com/tomcat/webapps" 
       workDir="/opt/file1.foo.com/tomcat/work" 
       unpackWARs="true" autoDeploy="true> 
       xmlValidation="false" xmlNamespaceAware="false"> 

  <!-- Rename your file1.war to /opt/file1.foo.com/tomcat/webapps/ROOT.war
and ensure it does not contain any META-INF/context.xml file --> 
 </Host> 

 <Host name="file2.foo.com" appBase="/opt/file2.foo.com/tomcat/webapps" 
       workDir="/opt/file2.foo.com/tomcat/work" 
       unpackWARs="true" autoDeploy="true> 
       xmlValidation="false" xmlNamespaceAware="false"> 

  <!-- Rename your file2.war to /opt/file2.foo.com/tomcat/webapps/ROOT.war
and ensure it does not contain any META-INF/context.xml file --> 
 </Host> 

 <Host name="file3.foo.com" appBase="/opt/file3.foo.com/tomcat/webapps" 
       workDir="/opt/file3.foo.com/tomcat/work" 
       unpackWARs="true" autoDeploy="true> 
       xmlValidation="false" xmlNamespaceAware="false"> 

  <!-- Rename your file3.war to /opt/file3.foo.com/tomcat/webapps/ROOT.war
and ensure it does not contain any META-INF/context.xml file --> 
 </Host> 
</Engine> 
this example is running for tomcat setup, but when i made it with jonas, i
receive a lot of error messages
In fact, when i change the path for the appbase parameter, jonas would not
start
Is where any way to specify an another webapps path outside of jonas home
without making a lot error ?

the idea is to have this configuration 


Apache : 


<VirtualHost *:80>
        ServerAdmin 
        DocumentRoot "/my/outside/folders/webapps/JonasApp"
        ServerName xxX.xxx.xxx.xxx
        DirectoryIndex index.jsp index.html
        JkMount /* worker1
       JkMount /JsApp/*.jsp worker1
       JkMount /JsApp/*.do worker1
       JkMount /JsApp/*.jsp worker1
       JkMount /JsApp worker1
       JkMount /JsApp/* worker1

</VirtualHost>


server.xml 
 <Host name="localhost" debug="0" appBase="webapps"
       unpackWARs="false" autoDeploy="false"
       deployOnStartup="false" deployXML="false">
</Host>

<Host name="Jsapp.server" appBase="/my/outside/folders/webapps"
       workDir="/my/outside/folders/work"
       unpackWARs="true" autoDeploy="false"
       xmlValidation="false" xmlNamespaceAware="false">
</Host>

 
-- 
View this message in context: http://www.nabble.com/Jonas-Virtual-host---webapps-tf1903305.html#a5208522
Sent from the Tomcat - User forum at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message