*
The moose likes Portals and Portlets and the fly likes liferay: different content for different ip addresses Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "liferay: different content for different ip addresses" Watch "liferay: different content for different ip addresses" New topic
Author

liferay: different content for different ip addresses

Pablo Marmol
Greenhorn

Joined: Aug 23, 2010
Posts: 13
Hi Everyone,

I'm using Liferay in a project and customer has requested me a new functionality: They want to show different content depending on the IP address of the client. My customer has different ip ranges for his clients, let say range 1, range 2, range 3. When a client points his/her browser to the main page of my customer's site, a page for range 1, 2 or 3 should be shown if the client has an ip address in the range 1, 2 or 3.
My customer has apache as front-end, and weblogic with liferay as a back-end. I suppose that if liferay tries to obtain the client ip address, probably the obtained ip would be an apache ip, so maybe this approach won't work. Another approach could be to use apache redirecting rules (that is, identifying the source network in apache and appending certain parameter to the URL for weblogic).
Could you help me? Please, i need only a few comments about this, a link or something. I don't know if this is an usual requirement, but i'm pretty sure that someone has faced this challenge before me.

Thank you very much in advance.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: liferay: different content for different ip addresses
 
Similar Threads
More than one Apache as load balancers
Google automatic redirect
getting own IP address
Linux and Windows Networking
clustering