文章目录

安装软件和包:

apt-get install apache2 sun-java5-jdk tomcat5.5 libapache2-mod-proxy-html
  1. 加载proxy模块
    a2enmod proxy

  2. tomcat :server.xml 去掉以下注释:

  3. 修改apache 虚拟主机:


    ServerName www.host.com
    ProxyRequests Off
    ProxyPreserveHost On


    Order deny,allow
    Allow from all



    ProxyPass /JTEducation/ ajp://localhost:8009/JTEducation/
    ProxyPassReverse /JTEducation/ ajp://localhost:8009/JTEducation/
    ProxyPass / ajp://localhost:8009/JTEducation/
    ProxyPassReverse / ajp://localhost:8009/JTEducation/



    Order allow,deny
    Allow from all


  4. 重启apache

    /etc/init.d/apache2 reload

文章目录