0

In my J2ee based application which is deployed on Oracle Weblogic 11g AS, request comes from two Oracle HTTP Web Server. One is meant for Intranet and other is for Internet users. I want to figure out from whether request is coming from Internet web server or Intranet web server. Basis this, access of application being restricted.

Can we add some request header at Oracle HTTP Web Server side which can be check in servlet once request will reach to Application server?

Idea is that we'll add request header in both the web servers with different value. Once request will reach to application server, we'll check the value of this header and identify from which web server request is coming from. Accordingly access right will be provided to the users accessing the application from internet or intranet.

Please suggest if any other solution can meet the requirement.

6
  • you should be able to identify it based on IP from where request is coming Commented Jul 14, 2014 at 4:04
  • Already tried this, but not getting correct IP. Commented Jul 14, 2014 at 4:05
  • elaborate it please, why and how it is not working Commented Jul 14, 2014 at 4:06
  • Please see, another question posted with regards to same. All details are available there. "Not receiving Web Server IP On Application Server" Commented Jul 14, 2014 at 4:08
  • stackoverflow.com/questions/24712355/… Commented Jul 14, 2014 at 13:02

1 Answer 1

0

You could separate the traffic using networks channel. (http://docs.oracle.com/cd/E23943_01/web.1111/e13701/network.htm)

For instance register a new HTTP channel for the WLS Managed Server and point one HTTP server to this new port.

Then you could implement a Weblogic filter the achieve the expected behavior. (http://weblogic-wonders.com/weblogic/2011/03/03/weblogic-connection-filters/)

Sign up to request clarification or add additional context in comments.

1 Comment

Hi, Thanks for your suggestion. I went through the docs but could not figure out how it can solve the problem in hand. Kindly elaborate and assist further.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.