# start export JAVA_HOME=/usr/lib/jvm/jdk1.6.0 export JAVA_OPTS="$JAVA_OPTS -Xmx256m" /usr/local/apache-tomcat-5.5.20/bin/startup.sh # deploy /opt/SDK2/bin/asadmin deploy /tmp/Intranet.war # change port from 8080 to 80 sed -i 's|port="8080"|port="80"|g' /etc/tomcat6/server.xml # redirect by default to a app mv /var/lib/tomcat6/webapps/ROOT/index.html /var/lib/tomcat6/webapps/ROOT/index.old.html cat <<EOF> /var/lib/tomcat6/webapps/ROOT/index.html <html> <head> <meta http-equiv="refresh" content="0;URL=/YOUR_TARGET/"> </head> <body> </body> </html> EOF # LINKS http://linux-sxs.org/internet_serving/c581.html