Install mod_jk. I downloaded it from 
http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/linux/jk-1.2.10/

Copy the jakarta-connector*.so to your apache2 modules directory.

Activate your new module:

I used this two files in /etc/apache/mods-avaliable:

+-----------+
mod_jk.conf
+-----------+
# Where to find workers.properties
# Update this path to match your conf directory location (put 
workers.properties next to httpd.conf)
JkWorkersFile /etc/apache2/workers.properties

# 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/apache2/mod_jk.log

# Set the jk log level [debug/error/info]
JkLogLevel    info

# Select the log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "

#JkOptions     +ForwardURICompatUnparsed

#JkOptions     +ForwardURIEscaped

#JkOptions     +ForwardURICompat

# JkOptions indicate to send SSL KEY SIZE,
# la sgte linea la he comentado yo
JkOptions     +ForwardKeySize +ForwardURICompat -ForwardDirectories

# JkRequestLogFormat set the request format
JkRequestLogFormat     "%w %V %T"

# Send everything for context /examples to worker named worker1 (ajp13)
JkMount  /jsp-examples/* worker1
JkMount  /blojsom/* worker1



+-----------+
mod_jk.load
+-----------+
LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so


Then link this files in /etc/apache2/mods-enabled/


Put a workers.property file in your apache2 conf dir (/etc/apache2 in my 
linux). This is my 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=8009
  worker.worker1.lbfactor=50
  worker.worker1.cachesize=10
  worker.worker1.cache_timeout=600
  worker.worker1.socket_keepalive=1
  worker.worker1.reclycle_timeout=300




In tomcat you must use URIEncoding="UTF-8" in your connectors in server.xml:

  (I forgot this connector ...)

   <Connector port="8009"
               enableLookups="false" redirectPort="8443" debug="0"
               protocol="AJP/1.3" URIEncoding="UTF-8"/>



    <Connector port="8080"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" redirectPort="8443" acceptCount="100"
               debug="0" connectionTimeout="20000"
               disableUploadTimeout="true" URIEncoding="UTF-8"/>

Launch tomcat, launch apache2 force-reload.


-- 
Luis Sánchez Sánchez <[EMAIL PROTECTED]>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to