Installing Tomcat 7 and Apache2 with mod_jk on Ubuntu 14.04 and connect our tomcat with apache....... ------------------------------------------------------------------------- Step1 ------------------------------------------------------------------------- Installing Apache #sudo apt-get install apache2 Test the installation from the browser using http://localhost/ ------------------------------------------------------------------------- Step2 ------------------------------------------------------------------------- Put your tomcat setup in /opt/ Create a test application for tomcat. #cd /opt/tomcat/tomcat1/webapps #sudo mkdir tomcat now past here all your ROOT files. ----------------------------------------------------------------------- Step3 ------------------------------------------------------------------------- Test the installation from the browser using http://localhost:8080/tomcat ----------------------------------------------------------...
Step One — Create the Directory Structure The first step that we are going to take is to make a directory structure that will hold the site data that we will be serving to visitors. Our document root (the top-level directory that Apache looks at to find content to serve) will be set to individual directories under the /var/www directory. We will create a directory here for both of the virtual hosts we plan on making. Within each of these directories, we will create a public_html folder that will hold our actual files. This gives us some flexibility in our hosting. For instance, for our sites, we're going to make our directories like this: sudo mkdir -p /var/www/ example.com /public_html sudo mkdir -p /var/www/ test.com /public_html The portions in red represent the domain names that we are wanting to serve from our VPS. Step Two — Grant Permissions Now we have the directory structure for our files, but they are owned by ...