﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-Java天地-随笔分类-Portal</title><link>http://www.blogjava.net/stormspire/category/21031.html</link><description>OpenSource Fan</description><language>zh-cn</language><lastBuildDate>Tue, 27 Mar 2007 23:39:47 GMT</lastBuildDate><pubDate>Tue, 27 Mar 2007 23:39:47 GMT</pubDate><ttl>60</ttl><item><title>IBM http plugin 的合并</title><link>http://www.blogjava.net/stormspire/archive/2007/03/27/merge_http_plugin.html</link><dc:creator>StormSpire</dc:creator><author>StormSpire</author><pubDate>Tue, 27 Mar 2007 08:30:00 GMT</pubDate><guid>http://www.blogjava.net/stormspire/archive/2007/03/27/merge_http_plugin.html</guid><wfw:comment>http://www.blogjava.net/stormspire/comments/106698.html</wfw:comment><comments>http://www.blogjava.net/stormspire/archive/2007/03/27/merge_http_plugin.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/stormspire/comments/commentRss/106698.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/stormspire/services/trackbacks/106698.html</trackback:ping><description><![CDATA[刚刚做了一个简单的文档给客户, 介绍如何合并多个IBM http 
plugin文件到一个。<br /><br />用途：如果有一台WPS服务器，一套WAS的集群环境，需要在DMZ中架IBM http 
Server来统一节点访问在intranet中的WPS和WAS集群。 这个时候需要将WPS和WAS集群的2个http 
plugin文件合并成一个文件，发布在DMZ中的http server.<br /><br />具体内容:<br />1. HTTP Plugin 文件组成
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 128, 128);"> 1</span> <span style="color: rgb(0, 0, 255);">&lt;?</span><span style="color: rgb(255, 0, 255);">xml version="1.0" encoding="ISO-8859-1"</span><span style="color: rgb(0, 0, 255);">?&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);"> 2</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">Config </span><span style="color: rgb(255, 0, 0);"><img src="http://www.blogjava.net/images/dot.gif" /></span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);"> 3</span> <span style="color: rgb(0, 0, 0);">  </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">Log </span><span style="color: rgb(255, 0, 0);">LogLevel</span><span style="color: rgb(0, 0, 255);">="Error"</span><span style="color: rgb(255, 0, 0);"> Name</span><span style="color: rgb(0, 0, 255);">="/usr/WebSphere/DeploymentManager/logs/http_plugin.log"</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);"> 4</span> <span style="color: rgb(0, 0, 0);">  </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">Property </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="<img src="http://www.blogjava.net/images/dot.gif" />"</span><span style="color: rgb(255, 0, 0);"> value</span><span style="color: rgb(0, 0, 255);">="<img src="http://www.blogjava.net/images/dot.gif" />"</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);"> 5</span> <span style="color: rgb(0, 0, 0);"> <br /></span><span style="color: rgb(0, 128, 128);"> 6</span> <span style="color: rgb(0, 0, 0);">  </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">VirtualHostGroup </span><span style="color: rgb(255, 0, 0);">Name</span><span style="color: rgb(0, 0, 255);">="default_host"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);"> 7</span> <span style="color: rgb(0, 0, 0);">    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">VirtualHost </span><span style="color: rgb(255, 0, 0);">Name</span><span style="color: rgb(0, 0, 255);">="*:<img src="http://www.blogjava.net/images/dot.gif" />"</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);"> 8</span> <span style="color: rgb(0, 0, 0);">  </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">VirtualHostGroup</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);"> 9</span> <span style="color: rgb(0, 0, 0);"> <br /></span><span style="color: rgb(0, 128, 128);">10</span> <span style="color: rgb(0, 0, 0);">  </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">ServerCluster </span><span style="color: rgb(255, 0, 0);"><img src="http://www.blogjava.net/images/dot.gif" /></span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);">11</span> <span style="color: rgb(0, 0, 0);">    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">Server </span><span style="color: rgb(255, 0, 0);"><img src="http://www.blogjava.net/images/dot.gif" /></span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);">12</span> <span style="color: rgb(0, 0, 0);">      </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">Transport </span><span style="color: rgb(255, 0, 0);"><img src="http://www.blogjava.net/images/dot.gif" /></span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);">13</span> <span style="color: rgb(0, 0, 0);">        </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">Property </span><span style="color: rgb(255, 0, 0);"><img src="http://www.blogjava.net/images/dot.gif" /></span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);">14</span> <span style="color: rgb(0, 0, 0);">      </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">Transport</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"> <br /></span><span style="color: rgb(0, 128, 128);">15</span> <span style="color: rgb(0, 0, 0);">    </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">Server</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);">16</span> <span style="color: rgb(0, 0, 0);">    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">PrimaryServers</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);">17</span> <span style="color: rgb(0, 0, 0);">      </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">Server </span><span style="color: rgb(255, 0, 0);">Name</span><span style="color: rgb(0, 0, 255);">="asp02_sstserver02"</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);">18</span> <span style="color: rgb(0, 0, 0);">      </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">Server </span><span style="color: rgb(255, 0, 0);">Name</span><span style="color: rgb(0, 0, 255);">="asp01_sstserver01"</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);">19</span> <span style="color: rgb(0, 0, 0);">    </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">PrimaryServers</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);">20</span> <span style="color: rgb(0, 0, 0);">  </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">ServerCluster</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);">21</span> <span style="color: rgb(0, 0, 0);"> <br /></span><span style="color: rgb(0, 128, 128);">22</span> <span style="color: rgb(0, 0, 0);">  </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">UriGroup </span><span style="color: rgb(255, 0, 0);">Name</span><span style="color: rgb(0, 0, 255);">="default_host_SolCluster_URIs"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);">23</span> <span style="color: rgb(0, 0, 0);">    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">Uri </span><span style="color: rgb(255, 0, 0);"><img src="http://www.blogjava.net/images/dot.gif" /></span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);">24</span> <span style="color: rgb(0, 0, 0);">  </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">UriGroup</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);">25</span> <span style="color: rgb(0, 0, 0);">  </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">Route </span><span style="color: rgb(255, 0, 0);">ServerCluster</span><span style="color: rgb(0, 0, 255);">="SolCluster"</span><span style="color: rgb(255, 0, 0);"> UriGroup</span><span style="color: rgb(0, 0, 255);">="default_host_SolCluster_URIs"</span><span style="color: rgb(255, 0, 0);"> VirtualHostGroup</span><span style="color: rgb(0, 0, 255);">="default_host"</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);">26</span> <span style="color: rgb(0, 0, 0);"> <br /></span><span style="color: rgb(0, 128, 128);">27</span> <span style="color: rgb(0, 0, 0);">  </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">RequestMetrics </span><span style="color: rgb(255, 0, 0);"><img src="http://www.blogjava.net/images/dot.gif" /></span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);">28</span> <span style="color: rgb(0, 0, 0);">    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">filters </span><span style="color: rgb(255, 0, 0);"><img src="http://www.blogjava.net/images/dot.gif" /></span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);">29</span> <span style="color: rgb(0, 0, 0);">  </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">RequestMetrics</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);">30</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">Config</span><span style="color: rgb(0, 0, 255);">&gt;</span></div><br /><br />2. 合并 
VirtualHostGroup<br /><img alt="merge.bmp" src="http://www.blogjava.net/images/blogjava_net/stormspire/merge.bmp" border="0" height="539" width="640" /><br /><img alt="merge" src="/WebResource.axd?d=pLXXeGbWF7eXU8SMs2-GFZvUWY2JNH05dFx5YzJhGUYAYJAFEaTEq36NAhTPy7_KekvzDFwt8wvQWdByvJIGWdEq6x2KpKD80&amp;t=633043190666685000" height="1" width="1" /><br />3. 
合并 ServerCluster<br />取出Virtual Host Group需要用到的port所对应的ServerCluster<br /><ul><li>  需要用到WAS的9082, 9445 和 9083, 9446, 所以将WAS配置里的ServerCluster那段merge进来
</li><li>  需要用到WPS的9081， 所以将WPS配置的ServerCluster那段merge进来</li></ul><br />4. 合并 
UriGroup<br />UriGroup命名方式一般为 VirtualHostGroup名称 + “_” +ServerCluster名字+ “_” + 
“URIs”<br /><ul><li>  取出WPS配置里用到的ServerCluster名字 组成新的UriGroup名 
“default_host_WebSphere_Portal_psp01_Cluster_URIs”
</li><li>  取出WAS配置里用到的ServerCluster名字 组成新的UriGroup名 
“was_host_SlCluster_URIs”</li></ul>注意&lt;Route&gt;需要和&lt;UriGroup&gt;一一对应<br /><br /><img src ="http://www.blogjava.net/stormspire/aggbug/106698.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/stormspire/" target="_blank">StormSpire</a> 2007-03-27 16:30 <a href="http://www.blogjava.net/stormspire/archive/2007/03/27/merge_http_plugin.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>