Topic: apache+weblogic取ip地址问题 |
Print this page |
1.apache+weblogic取ip地址问题 | Copy to clipboard |
Posted by: Breeze Posted on: 2003-05-26 11:17 只能取到apache运行的服务器的ip,取不到客户端的ip,哪位有这样的解决办法,共享一下,谢谢先。 |
2.Re:apache+weblogic取ip地址问题 [Re: Breeze] | Copy to clipboard |
Posted by: why Posted on: 2003-05-26 11:43 Apache... do you mean REMOTE_HOST/REMOTE_ADDR CGI variables don't work as expected? (Then with Java (JSP) request.getRemoteAddr(); or request.getRemoteHost(); isn't likely to work.) Please clarify. You may have to tell us the configuration of the Apache Server as well. |
3.Re:apache+weblogic取ip地址问题 [Re: Breeze] | Copy to clipboard |
Posted by: Breeze Posted on: 2003-05-26 12:43 是啊,用的是request.getRemoteHost()/request.getRemoteAddr(),在weblogic里直接执行的话,就可以取得远程访问客户的ip地址,比如:192.168.1.1 前端运行apace,如果是servlet/jsp就转发给后台的weblogic来处理。这时间取得的客户端地址就只能是apache运行的server的ip地址,如何才能取得远程客户的ip地址? apache配置如下: httpd.conf #add module for weblogic LoadModule weblogic_module modules/mod_wl_20.so <IfModule mod_weblogic.c> WebLogicCluster 192.168.1.88:8001,192.168.1.99:8001 MatchExpression *.jsp </IfModule> <Location /servlet> SetHandler weblogic-handler PathTrim /servlet </Location> |
4.Re:apache+weblogic取ip地址问题 [Re: Breeze] | Copy to clipboard |
Posted by: FinalFantasy Posted on: 2003-06-07 05:08 试试在weblogic中,设置External Name为你的apache的地址。(就在控制台里边) |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |