Tomcat Configuration with more than 2,000 apps
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Pat_Wei
Posted On:   Friday, April 1, 2011 07:57 PM

I am pretty new to Apache/Tomcat configuration. Here is my situation: We have more than two thousands applications in ten categories. Originally, those two thousands applications are all under Catalina_home/webapps/. I am asked to organize those applications into categories during our server migration. Ideally, when Apache sees a request with URI like https://localhost:8080/category1/myapp1 https://localhost:8080/category1/myapp2 https://localhost:8080/category1/myapp3 https://localhost:8080/category1/myapp4 , those request will be routed to a tomcat worker called worker_category1. FYI, there are about 1,300 applications in category1. I tried to add    More>>

I am pretty new to Apache/Tomcat configuration. Here is my situation:




We have more than two thousands applications in ten categories. Originally, those two thousands applications are all under Catalina_home/webapps/. I am asked to organize those applications into categories during our server migration. Ideally, when Apache sees a request with URI like

			
https://localhost:8080/category1/myapp1
https://localhost:8080/category1/myapp2
https://localhost:8080/category1/myapp3
https://localhost:8080/category1/myapp4

, those request will be routed to a tomcat worker called worker_category1.


FYI, there are about 1,300 applications in category1.


I tried to add tag to server.xml file. I did like this:

			

docBase="/C:/Program Files/Tomcat 7.0/webapps/category1"
debug="0"
reloadable="true"
crossContext="true">





I was hoping that /category1 will act like /webapps, all applications under webapps/category1 will be seen when URI

			
https://localhost:8080/category1/myapp1/
https://localhost:8080/category1/myapp2/
https://localhost:8080/category1/myapp3/
https://localhost:8080/category1/myapp4/


are used.


But, it did not work! It cannot find myapp1, myapp2, and so on.


If I add /myapp1 into the path attribute like this:

			

docBase="/C:/Program Files/Tomcat 7.0/webapps/category1/myapp1"
debug="0"
reloadable="true"
crossContext="true">






It works. But, if I do this way, I will need to add 1,300 tags into server.xml. Each tag is only for one application. Is it too much?! Did I do something wrong?




Any suggestions is greatly appreciated!

   <<Less
About | Sitemap | Contact