<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[运维进行时]]></title> 
<link>https://blog.liuts.com/index.php</link> 
<description><![CDATA[互联网运维与架构]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[运维进行时]]></copyright>
<item>
<link>https://blog.liuts.com/post//</link>
<title><![CDATA[Linux 下整合apache+Resin+gzip配制]]></title> 
<author>root &lt;admin@yourname.com&gt;</author>
<category><![CDATA[Apache]]></category>
<pubDate>Sat, 22 Sep 2007 07:07:41 +0000</pubDate> 
<guid>https://blog.liuts.com/post//</guid> 
<description>
<![CDATA[ 
	1、整合apache+resin<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content"><br/>安装apache:<br/>#./configure --prefix=/usr/local/apache --enable-module=most --enable-shared=max&nbsp;&nbsp;--enable-so&nbsp;&nbsp;--enable-rewrite --enable-deflate --enable-headers --with-mpm=prefork<br/>#make&nbsp;&nbsp;&& make install<br/></div></div><br/>2、融合apache与resin<br/><textarea name="code" class="shell" rows="15" cols="100">
#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
<IfModule mod_caucho.c>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ResinConfigServer localhost 6802
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CauchoStatus yes
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<location " /caucho-status">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sethandler caucho-status
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</location>
</IfModule>
http://192.168.100.23/caucho-status出现resin的画面说明整合成功。
注：resin.conf配制修改：
<http server-id="" host="*" port="80"/>改成：
<http server-id="" host="*" port="8080"/>
<srun server-id="" host="*" port="6802"/>改成：
<srun server-id="" host="127.0.0.1" port="6802"/>
</textarea><br/>3、配制gzip支持。<br/><textarea name="code" class="shell" rows="15" cols="100">
#vi /usr/local/apache/conf/httpd.conf
<Location "/">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AddOutputFilterByType DEFLATE text/html text/plain text/xml
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BrowserMatch ^Mozilla/4 gzip-only-text/html
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BrowserMatch ^Mozilla/4&#92;.0[678] no-gzip
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BrowserMatch &#92;bMSI[E] !no-gzip !gzip-only-text/html
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Header append Vary User-Agent env=!dont-vary
</Location>
</textarea><br/>resin restart<br/>apachectl restart<br/>Tags - <a href="https://blog.liuts.com/tags/apache/" rel="tag">apache</a> , <a href="https://blog.liuts.com/tags/resin/" rel="tag">resin</a> , <a href="https://blog.liuts.com/tags/gzip/" rel="tag">gzip</a>
]]>
</description>
</item><item>
<link>https://blog.liuts.com/post//#blogcomment</link>
<title><![CDATA[[评论] Linux 下整合apache+Resin+gzip配制]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>https://blog.liuts.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>