RHEL5整合Apache+Tomcat,支持jsp与php - guolr - ITeye技术网站
install tomcat
yum install tomcat5 ( not yum install tomcat5-...-version )
yum search webapp (and install manger and admin webapp)
httpd: /etc/httpd/conf/httpd.conf
ProxyPass /mej http://ghost:8080/mej
ProxyPass /bq http://ghost:8080/bq
ProxyPass /mydemo http://ghost:8080/mydemo
(must config for all java ee project)
tomcat: /etc/tomcat5/tomcat5.conf
User tomcat
Group tomcat
CATALINA_HOME="/usr/share/tomcat5"
DocumentRoot $CATALINA_HOME/webapps/ROOT/index.html
/etc/tomcat5/server.xml
<Context path="/me" docBase="/u/me/web"/>
<Context path="/mej" docBase="/u/me/webj"/>
<Context path="/bq" docBase="/u/me/webj/bq/WebContent"/>
(must config all projects except those under tomcat webapps)
/etc/tomcat5/tomcat-users.xml
<role rolename="admin"/>
<role rolename="manager"/>
<user username="admin" password="admin" roles="admin,manager,tomcat"/>
my httpd or tomcat5 http://ghost/mydemo http://ghost:8080/mydemo document: tomcat_webapps/mydemo
my httpd or tomcat5 http://ghost/bq http://ghost:8080/bq document: ~/webj/bq/WebContent
没有评论:
发表评论