标题:Linux 下整合apache+Resin+gzip配制 出处:运维进行时 时间:Sat, 22 Sep 2007 15:07:41 +0000 作者:root 地址:https://blog.liuts.com/post/84/ 内容: 1、整合apache+resin 引用 安装apache: #./configure --prefix=/usr/local/apache --enable-module=most --enable-shared=max --enable-so --enable-rewrite --enable-deflate --enable-headers --with-mpm=prefork #make && make install 2、融合apache与resin #cd /src/resin-3.0.21/ #./configure --with-apxs=/usr/local/apache/bin/apxs --with-apache=/usr/local/apache && make && make install #vi /usr/local/apache/conf/httpd.conf add: LoadModule caucho_module /usr/local/apache/modules/mod_caucho.so ResinConfigServer localhost 6802 CauchoStatus yes sethandler caucho-status http://192.168.100.23/caucho-status出现resin的画面说明整合成功。 注:resin.conf配制修改: 改成: 改成: 3、配制gzip支持。 #vi /usr/local/apache/conf/httpd.conf AddOutputFilterByType DEFLATE text/html text/plain text/xml BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4\.0[678] no-gzip BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html Header append Vary User-Agent env=!dont-vary resin restart apachectl restart Generated by Bo-blog 2.1.1 Release