#apt-get install libtool automake autoconf apache2-threaded-devDownload the latest version of tomcat-connectors
Build and install the mod_jk libraries with the following commands:
#tar xvzf tomcat-connectors-1.2.23-src.tar.gz
#cd tomcat-connectors-1.2.23-src/native
#./buildconf.sh
#./configure --with-apxs=/usr/bin/apxs2
#make
#make installShort cut
#sudo apt-get install libapache2-mod-jk
This installed the libraries in /usr/lib/apache2/modules.
Create /etc/apache2/mods-enabled/jk.load:
equal to-
LoadModule jk_module /usr/lib/apache2/modules/mod_jk.soCreate /etc/apache2/mods-enabled/jk.conf:
JkWorkersFile /etc/apache2/workers.properties
JkLogFile /var/log/apache2/jk.log
JkMount /ecommerce/* worker1
JkMount /images/* worker1
JkMount /content/* worker1Create /etc/apache2/workers.properties:
# Define 1 real worker using ajp13
worker.list=worker1
# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009There are no extras defined here. This is only to get things up and running. There are extra steps that you should take to ensure that things are secure.
No comments:
Post a Comment
tag ur valuable ideas below