0

I have apache2 and tomcat6 installed on ubuntu 9.10. By default tomcat6 port no is 8080.

I want to run tomcat and apache on port 80. For tomcat virtual hosting it should navigate to tomcat webapps and for apache it should direct to var/www.

Plz any one give me step by step guide to achive this. Thank you!

I made tomcat to run on port 80 with mod_jk module installation.

Is it possible to run tomcat on port 80 and as well as on 8080?. Because I'm using "Application Manager" monitoring tool and I have to monitor tomcat. It requires tomcat to be running on any port. As I did port forwarding(mod_kj), when I try to specify the tomcat port to get it monitored, I'm getting the error "Service is not running" on that port. I tried the ports 80,8080,8009... checking in the server.xml file.

3 Answers 3

3

Read more about mod_proxy_ajp or mod_jk. One of these modules will help you to have tomcat apps served by apache.
You cannot have two services on the same port, unless, you bind the services to different IPs.
Assuming you have two IPs you bind apache on first IP port 80 and tomcat on the second.

The easiest is using apache modules. Search for tomcat and apache configs that meet your needs.

HTH

2
  • Thank you I have both apache and tomcat running on port 80. I need help on how to use tomcat6-admin- "manager webapps" and "host-manager webapps" on the browser. With manager webapps on the browser I could deploy my .war file to /var/lib/tomcat6/webapps. Is it possible to deploy to remote server from my local 'manager webapps' page.
    – user53864
    Sep 19, 2010 at 13:43
  • All you need to know is here: tomcat.apache.org/tomcat-6.0-doc/manager-howto.html.
    – Paul
    Sep 19, 2010 at 14:05
0

This article, even though it is dated, might be of some help:

http://tomcat.apache.org/tomcat-3.2-doc/tomcat-apache-howto.html

I think the key there is to install a web-server adapter.

1
0

I solve this problem with nginx.

See: http://nginx.org/en/docs/howto_setup_development_environment_on_ec2.html and: http://www.yanaga.com.br/2012/02/utilizando-o-iptables-ou-ngninx-para.html (pt BR)

1
  • 1
    Welcome to serverfault. It's usually a encouraged to make your answer so they include details in addition to just links. If the link goes away then your answer becomes useless. Please add some of the details.
    – slm
    Feb 16, 2013 at 18:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .