Sharing Tomcat for both my static site and servoy web apps

Using Servoy to administrate the content of your website? Discuss all webrelated Servoy topics on this forum!

Sharing Tomcat for both my static site and servoy web apps

Postby jcarlos » Wed Jan 18, 2012 12:57 am

I’d like to use the web server installed with Servoy (Tomcat) to publish (for internal and testing purpose) a website with more than 40k statics URLs (html and pdf documents).

I wonder if just dumping the whole directory of ‘my-test-website’ into the ROOT folder would do the job. After all, the installation of Tomcat seems to be an standard installation (8080 port).

Is it ok if I share Tomcat's ROOT folder among my static site and the other Servoy's sub-directories?

JC
jcarlos
 
Posts: 578
Joined: Thu May 04, 2006 8:55 pm
Location: Palo Alto, California USA

Re: Sharing Tomcat for both my static site and servoy web ap

Postby ptalbot » Wed Jan 18, 2012 5:33 am

Tomcat can serve static documents, but it is not as efficient as Apache Httpd for this task.

I would recommend using Apache Httpd as your main server, and proxying your dynamic requests to Tomcat, using either proxy method or mod_jk.
Google Apache mod_jk or Httpd + Tomcat proxying to find out how this is done, it's not that complicated and you get the best of both world.

Hope this helps,
Patrick Talbot
Freelance - Open Source - Servoy Valued Professional
https://www.servoyforge.net
Velocity rules! If you don't use it, you don't know what you're missing!
User avatar
ptalbot
 
Posts: 1654
Joined: Wed Mar 11, 2009 5:13 am
Location: Montreal, QC


Return to Web Development

Who is online

Users browsing this forum: No registered users and 3 guests