Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Probably not what you want to do...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Probably not what you want to do...
Authored by: escowles on Feb 04, '05 10:48:36AM

This configures tomcat to run on port 80 -- which is fine for a small site, but probably not what you want to do for a production website.

You should load jk_module and setup workers.properties to point to the AJP1.3 instance that tomcat runs (typically on port 8009). Then, apache will serve most normal content as before (including PHP, CGI, etc. which tomcat can't handle, and static files which apache will be much more efficient for). But your webapps will be mounted under the root.

Just make a war file and place it in $CATALINA_HOME/webapps and then restart tomcat. Tomcat will automatically unpack the war file, setup the webapp, and mount it under the root so you can still access it as www.yourdomain.org/web/foo.jsp as before.

Alternatively, if you want to run tomcat on port 80, all you need to do is change the default HttpConnector port from 8080 to 80, and everything will work for tomcat. You'll need to put all your static files under $CATALINA_HOME/webapps/ROOT/ instead of /Library/WebServer/Documents/, though.

-Esme



[ Reply to This | # ]