From: François-Xavier B. <fra...@ce...> - 2009-12-10 09:19:25
|
Hello, Currently, there is no way to know the IP address of the remote client from aggregated applications. You could add logs in your aggregator application or on your front Apache server if you are using one, but not on the aggregated applications. It could be a nice feature in the next version of WAT to forward the IP address of remote clients to the aggredated applications. I guess the best way would be to do the same as Apache mod_proxy : add a "X-Forwarded-For" request header. http://httpd.apache.org/docs/2.2/mod/mod_proxy.html I just added a feature request in the tracker : https://sourceforge.net/tracker/?func=detail&aid=2911888&group_id=209844&ati d=1011350 Regards, Francois-Xavier Bonnet -----Message d'origine----- De : Chr...@if... [mailto:Chr...@if...] Envoyé : mercredi 9 décembre 2009 14:00 À : web...@li... Objet : [Webassembletool-users] get RemoteAddress through WAT. Hello, I use WAT 2.3 for a while in production environments, with the reverse proxy Aggregator Servlet ( which aggregates Jahia CMS and other web providers) Everything works fine now ,but I'm having problems with providers which need to get IP address of remote clients ( to do logs with log4j, or anything else about remoteAdress of HTTP client....eg. sending information about form validation......) Indeed, Providers uses basically HttpServletRequest.getRemoteAddress to get HTTP clients, but get finally the IP of the server running WAT Aggregator Servlet. Is there a way to get the real remoteAddress instead of this through WAT Aggregator ? Any idea would be appreciate ! Best Regards, Christophe Dumonet -- ---------------------------------------------------- Christophe Dumonet Centre de Ressources Informatiques Institut Francais de Mecanique Avancee (IFMA) Campus des Cezeaux BP 265 63175 AUBIERE Cedex Tel : +33 - 4.73.28.80.64 Fax : +33 - 4.73.28.81.00 Mail : Chr...@if... ---------------------------------------------------- ---------------------------------------------------------------------------- -- Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev _______________________________________________ Webassembletool-users mailing list Web...@li... https://lists.sourceforge.net/lists/listinfo/webassembletool-users |