Click here to Skip to main content
15,905,028 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I would like to run different apps on single tomcat instance on different ports,
I have tried as following on server.xml, which has take from google. Pls help me in doing this

<service name="Test1">
<connector port="8080" maxhttpheadersize="8192" maxthreads="10">
enableLookups="false" acceptCount="100"
connectionTimeout="10000" disableUploadTimeout="true"
useBodyEncodingForURI="true"/>
<engine name="reciver" defaulthost="localhost" jvmroute="host1">
<realm classname="org.apache.catalina.realm.UserDatabaseRealm">
resourceName="UserDatabase" />
<host name="localhost" appbase="webapps" unpackwars="true">
autoDeploy="false" xmlValidation="false"
xmlNamespaceAware="false">
<context docbase="browser" path="/browser" reloadable="false">



<service name="test">
<connector port="8081" maxhttpheadersize="8192" maxthreads="10">
enableLookups="false" acceptCount="1"
connectionTimeout="10000" disableUploadTimeout="true"
useBodyEncodingForURI="true" proxyName="example.pt" proxyPort="80"/>
<engine name="reciver2" defaulthost="example_app" jvmroute="host2">
<host name="example_app" appbase="test_app/example_app" unpackwars="true">
autoDeploy="false" xmlValidation="false"
xmlNamespaceAware="false">
<context docbase="example_app" path="/example_app" reloadable="false">


Posted

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900