tomcat 5.0.x のバックアップ(No.1)


tomcat 5.0.x

GETパラメータのURL-Encodeされたパラメータをdecodeする。
useBodyEncodingForURI="true"

設定ファイル

tomcat5

#!/bin/bash
#
# chkconfig: 345 97 03
# description: tomcat5
#
# Startup script for Tomcat Application Server
#


# ----- Save and Set Environment Variables --------------------------------

PROGDIR=/usr/local/jakarta-tomcat5/bin
PROGUSER=tomcat5
UMASK_VALUE=002
LOCALE=ja_JP.eucJP
JAVA_HOME=/usr/local/j2sdk
#CATALINA_OPTS="-server -Xmx1024m -Xms1024m -Xss256k -XX:NewSize=256m -XX:MaxNewSize=256m"


# ----- Define Function ---------------------------------------------------

start() {
  su - ${PROGUSER} -c "umask ${UMASK_VALUE}; LC_ALL=${LOCALE} JAVA_HOME=${JAVA_HOME} ${PROGDIR}/catalina.sh start"
}

stop() {
  su - ${PROGUSER} -c "umask ${UMASK_VALUE}; LC_ALL=${LOCALE} JAVA_HOME=${JAVA_HOME} ${PROGDIR}/catalina.sh stop"
}


# ----- Execute The Requested Command -------------------------------------

case "$1" in
  start)
    start
    ;;
  stop)
    stop
    ;;
  restart|reload)
    stop
    sleep 1
    start
    ;;
  *)
    echo "Usage:"
    echo "  $0 (start|stop|reload)"
    echo ""
    echo "Commands:"
    echo "  start   -  Start server"
    echo "  stop    -  Stop server"
    echo "  restart -  Restart server"
    echo ""
    ;;
esac

exit 0

workers2.properties

[status:]

[uri:/jkstatus/*]
group=status:

[shm:]
disabled=1

[channel.socket:localhost:8009]
group=tomcat4
[channel.socket:localhost:18009]
group=tomcat5

[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

[ajp13:localhost:18009]
channel=channel.socket:localhost:18009



# tomcat4 webapps
[uri:/tomcat4webapp/*]
group=tomcat4
[uri:other.host/otherhostwebapp]
group=tomcat4

# tomcat5 webapps
[uri:/tomcat5webapp/*]
group=tomcat5