2006年1月17日星期二

FGS与Tomcat的连接

刚意识到连接使用Apache与Tomcat的意义。
由于FGS当前套装中Apache版本是1.3.34,并且编译的时候没有链接apr/apr-util,难以用JK连接Tomcat。
检索FGS的邮件列表发现了如下方法,但不知道能不能适合我的需求:
On Tue, 2005-06-14 at 17:47, Dante Fuster wrote:
> Hi.
>
> Is it possible to install FGS already using an Apache installed
> previously? or to have an Apache compiled with all the bookstores that
> are required (example: apx..) to connect it to TOMCAT.

Here is what you could do:

Install FGS with its own Apache running on port 8080 and add these two
lines in the config file (httpd.conf) of your previously installed
Apache:

ProxyPass /gis/ http://127.0.0.1:8080/
ProxyPassReverse /gis/ http://127.0.0.1:8080/

Then, when queries will be made to http://your_web_site/gis/, they will
be forwarded to FGS's Apache.

Guillaume
试一把先。
错误! 缺少代理功能模块,因为编译Apache时没有打开proxy开关。
用笨的方法,重新编译。
Bingo!
这样一来,就能通过代理将FGS连接到门户Apache,通过JK连接门户Apache和Tomcat,在门户Apache中通过frameset整合地图功能和MIS功能。测试了一下,客户端能够完成两项功能页面之间的脚本互动。

没有评论: