• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Wrong adress IP when JForum is after a WEB proxy

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When using the following directives in apache configuration file httpd.conf.

<VirtualHost *:80>
ServerName www.server.com
ServerAdmin webmaster@server.com
ProxyPass / http://server.internal_adress:8082/
ProxyPassReverse / http://server.internal_adress:8082/
</VirtualHost>

The IP adress record in the database is the apache web server adress instead the client adress.

We modify ActionServletRequest.java to prevent this and we join it.

Have a nice day to evryone


[originally posted on jforum.net by snaps-herve]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much for this patch.

Rafael
[originally posted on jforum.net by Rafael Steil]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!