Portal Home > Knowledgebase > Articles Database > Tomcat Configure


Tomcat Configure




Posted by tetrahost, 06-06-2012, 03:44 AM
Guys, need a help from tomcat admins! I have enabled tomcat on my linux/apache/cpanel server and also given a permission to a cPanel user. I was trying to run his site with the java app. The issue is now im able to connect to the app in following format: http://www.domain.com:8080 but when i try to visit the site without port, it does not work. I believe it is something related with apache conf, right? Can you suggest me what i need to do or what im missing? Any tutorial on how to get a site running on linux/apache/cpanel server will be helpful as well. Note, im new into tomcat and trying to learn it!

Posted by MattF, 06-06-2012, 04:11 AM
Disclaimer: Knowing nothing about cpanel and/or their integration with tomcat. If tomcat is running as a standalone app server on 8080 you could look into mod_proxy to reverse proxy the traffic destinated for his hostname back to the tomcat instance using Apache as kind of a multiplexer based on Hostname. If you're not hosting any other sites on the IP then why not simple bind Tomcat to port 80 .

Posted by activelobby4u, 06-06-2012, 04:13 AM
Apache uses the mod_jk connector module to talk to Tomcat. Please verify the mod Jk log file to see if it is showing any error. In cPanel, the log file location is usually at /usr/local/apache/logs/mod_jk.log

Posted by RoseHosting, 06-07-2012, 10:13 PM
If you want to change the port Tomcat listens on, then this tutorial may help you solve the problem: http://www.coreservlets.com/Apache-T...ml#Change-Port

Posted by tetrahost, 06-07-2012, 10:19 PM
thanks guys! i really appreciate the help! i got a new problem, tomcat is going down frequently! how to solve it?

Posted by RoseHosting, 06-07-2012, 10:25 PM
Did you check the log files for errors?

Posted by LnxtecH, 06-08-2012, 12:21 AM
1) To access tomcat over port 80, make sure its mapped or proxied using mod_jk/mod_proxy via file /etc/httpd/conf/userdata/std/2/USER/DOMAIN/conf (2) Most common reason for tomcat crashing is memory issues. Check /usr/local/jakarta/tomcat/logs/catalina.out for errors.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read