Developer, Java Evangelist, extensively worked on Java, GWT, Flex, RIA technologies with enterprise frameworks. I have a privilege to conduct lot of Training/Coaching in Java Technologies, and to connect with real people.
Check the list of Ubuntu EC2 AMIS available at http://alestic.com/ Click here to get started with launching EC2 AMIs click here Installing JDK6, Apache And Tomcat ++++++++++++++++++++
Test if tomcat is running /etc/init.d/tomcat6 status
Tomcat is installed in /var/lib/tomcat6 with main files linked in /etc/tomcat6 check more about tomcat6 configuration here
Configuring Apache2 with Tomcat6 Congiruation Setup for Apache2 Virtual Host Configuration setup,by SlicetHost clicking here
At this point, I am assuming Apache2 , Java6 and Tomcat6 are installed and running fine independantly.
1. In Order to, Apache and Tomcat to talk, Mod jk connector is needed sudo apt-get install libapache2-mod-jk sudo a2enmod jk
2. After that, check whether there is jk.load in the apache 2 modules sudo ls /etc/apache2/mods-enabled/
5. Edit and save the two lines of workers.properties sudo vi /etc/libapache2-mod-jk/workers.properties workers.tomcat_home=/usr/share/tomcat6 workers.java_home=/usr/lib/sun-java6 6. Edit and save the two lines in tomcat-users.xml sudo vi /etc/tomcat6/tomcat-users.xml
Open the browser and type www.domain1.com , you should see the domain1.com/public/index.html page
11.
TOMCAT6 NOTES ON UBUNTU +++++++++++++++++++++++ /var/lib/tomcat6/lib (CATALINA_BASE) /usr/share/tomcat6/lib (CATALINA_HOME) (Classes are loaded from here) Reference Links UBuntu's apache2 file structure is different with the addition of apache2.con, mods-available, mods-enables, sites-available, sites-enabled convention. Here is a good blog which explains this direcotry structure in details, click here
Good Article on How to Configure Apache2 with Tomcat, click here
Research Links
Configuring Apache2 with Multiple Instances of Tomcat, clikc here