Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic Deployment of web sites

Status
Not open for further replies.

7591838

Programmer
Nov 18, 2003
4
AU
Hi,

Im new in this area so please bear with me.
Im using Apache2, Tomcat5 and JK as connector on sun solaris 9. My application requirement is such that i have to deploy the web sites at runtime.

When i creat a new directory under webapps/ the tomcat gets this information and starts servicing this website. The problem is with apache.

In apache httpd.conf file, i have virtual host entry as:

<VirtualHost *>
ServerName myserver.com
DocumentRoot /export/tomcat/webapps
JkMount /ROOT/* tomcat1
JkMount /game1/* tomcat1
Alias /ROOT /export/tomcat/webapps/ROOT
Alias /game1 /export/tomcat/webapps/game1
</VirtualHost>


Now when i deploy game2 apache does not allow to access the resources under game2 directory.

The only way which i figured out is to use:

JkMount /* tomcat1

Is this solution fine? or there is some other solution.

Thanks in advance.

Regards,
syed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top