NOTE:  THIS IS A ROUGH DRAFT 1st ATTEMPT IF YOU FIND ERRORS PLEASE LET US KNOW

PLEASE FORGIVE THE BAD FORMATTING AND/OR TYPO'S!  :) 

 



CentOS, Smith, Apache, Tomcat, MySQL


Thankfully, most of the Tomcat configuration was documented very well on the smith project site. I have just made some slight changes, updated links, etc to those sections.



JRE_HOME=/usr/java/jdk1.6.0_01/jre

JAVA_OPTS="-server -Xms1024M -Xmx1024M -XX:PermSize=256m -XX:MaxPermSize=256m \

-Duser.language=de -Duser.country=CH -Dfile.encoding=UTF-8 \

-Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl"

    # Load mod_jk module
# Update this path to match your modules location
LoadModule    jk_module  modules/mod_jk.so
# Where to find workers.properties
# Update this path to match your conf directory location (put workers.properties next to httpd.conf)
JkWorkersFile /etc/httpd/conf/workers.properties
# Where to put jk shared memory
# Update this path to match your local state directory or logs directory
JkShmFile     /var/log/httpd/mod_jk.shm
# Where to put jk logs
# Update this path to match your logs directory location (put mod_jk.log next to access_log)
JkLogFile     /var/log/httpd/mod_jk.log
# Set the jk log level [debug/error/info]
JkLogLevel    info
# Select the timestamp log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
    # 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=8009 
    <!--  <Connector port="8080" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />  --> 
<Connector port="8009"
enableLookups="false" redirectPort="8443" protocol="AJP/1.3" /> 
	         ServerName localhost
JKMount /* worker1
</VirtualHost> 
	<Host name=”localhost” appBase=”webapps” unpackWARs=”true” autoDeploy=”true” xmlValidation=”true” xmlNamespaceAware=”false”>
<Context path=”” docBase=”ROOT/” reloadable=”true” privileged=”true” antiResourceLocking=”false” anitJARLocking=”false”>
</Context>
</Host>


Search