您的位置:首页 > 运维架构 > Apache

apache-2.2.4 和 resin 3.0.22的整合

2007-06-25 16:27 405 查看
1.apache安装

(1)下载httpd-tar.gz 2.2.4

 


tar -zxvf httpd-2.2.4.tar.gz


cd httpd-2.2.4


./configure --prefix=/usr/local/apache


make;make install&



然后 vi /usr/loca/apache/conf/httpd.conf

ServerName 192.168.78.188:80

DocumentRoot "/home/www"

(2)安装resin并整合

下载 resin 3.0.22

./configure --with-apache=/usr/local/apache

会编译module:/usr/local/apache/modules/mod_caucho.so并自动会在apache的 httpd.conf中加入以下几行:

 


LoadModule caucho_module /usr/local/apache/modules/mod_caucho.so




ResinConfigServer localhost 6802


CauchoConfigCacheDirectory /tmp


CauchoStatus yes



 

修改:resin/conf/resin.conf为:

 


  <host id="" root-directory=".">


      <!--


         - configures an explicit root web-app matching the


         - webapp's ROOT


        -->


      <web-app id="/" document-directory="/home/www"/>




      <resin:if test="${java.isJava5()}">


        <!--


           - Administration application /resin-admin


 
4000
          -


           - password is the md5 hash of the password.


           - localhost is true to limit access to the localhost


          -->


        <resin:set var="resin_admin_password"  default=""/>


        <resin:set var="resin_admin_localhost" default="true"/>




        <web-app id="/resin-admin" document-directory="${resin.home}/php/admin"/>


       </resin:if>


    </host>



 

(3)启动

 


/usr/local/apache/bin/apachectl start


/usr/local/resin/bin/httpd start
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  apache module webapp web