Integration of apache and tomcat
Required Software Package: httpd-2.2.21.tar.gz tomcat-connectors-1.2.32-src.tar.gz jdk-7-linux-x64.rpm apache-tomcat-7.0.23.tar.gz first install gcc to do the environment before compilation ..
Www.2cto.com first rpm-ivh jdk-7-linux-x64.rpm after installation is complete create a connection ln-s/usr/java/jdk1.7.0 // usr/jdk compile apachetar zxvf httpd-2.2.21.tar.gz-C/usr/local/src/cd /usr/local/src/httpd-2.2.21 /. /configure -- prefix =/usr/local/apache2 -- enable-so -- enable-rewrite -- enable-proxy-ajpmake & make your tar zxvf tomcat-connectors-1.2.32-src.tar.gz-C/usr /local/src/cd/usr/local/src/tomcat-connectors-1.2.32-src/cd native /. /configure -- with-apxs =/usr/local/apache2/bin/apxsmake & make installdecompress apache-tomcat-7.0.23.tar.gz tar zxvf apache-tomcat-7.0.23.tar.gz-C/usr/local/src/cd/usr/local/src /apache-tomcat-7.0.23/vim-o startup. sh shutdown. sh Add: export JAVA_HOME =/usr/jdk to the start and close files respectively, and then create a folder named jspcd in tomcat webapss to vim index in jsp. jsp open add <% = new java. util. date () %> modify the tomcat configuration file vim/usr/local/src/apache-tomcat-7.0.23/conf/server. modify the following content in xml: cd/usr/local/apache2/htdocsmkdir wwwecho "111111111111111"> index.html cd/usr/local/apache2/confvim httpd. conf: Modify Directoryindex. jsp index.html add include conf/extra/httpd-vhost.confinclude conf/extra/httpd-jk.confcd extravim httpd-vhost.confvim httpd-jk.conf vim workers. properties restart apache tomcat test: