Home » Applications » Oracle Fusion Apps & E-Business Suite » Configuring proxy - AutoConfig context file and Apache (R12)
Configuring proxy - AutoConfig context file and Apache [message #554767] Thu, 17 May 2012 05:30 Go to next message
donato
Messages: 53
Registered: November 2007
Location: Barcelona, Spain
Member
Hi everyone,

I'm trying to extend some functionallity in our E-Business Suite, and I have to access other machines in our network (just to access some Web Services).

The problem is I got no access to other machines, I receive the error "502 Proxy Error (host not found)".

Just for testing, I'm using the next function:
private void URLConnectionTest (String urlName)
{
  try
  {
     URL url = new URL(urlName);
     URLConnection connection = url.openConnection();
     connection.connect();

     // print header fields


     myLOG( "----- List of Header Fields -----");
     Map<String, List<String>> headers = connection.getHeaderFields();
     for (Map.Entry<String, List<String>> entry : headers.entrySet())
     {
        String key = entry.getKey();
        for (String value : entry.getValue())
           myLOG( key + ": " + value);
     }

     // print convenience functions
     myLOG( "----- Other properties -----");
     myLOG( "getContentType: " + connection.getContentType());
     myLOG( "getContentLength: " + connection.getContentLength());
     myLOG( "getContentEncoding: " + connection.getContentEncoding());
     myLOG( "getDate: " + connection.getDate());
     myLOG( "getExpiration: " + connection.getExpiration());
     myLOG( "getLastModifed: " + connection.getLastModified());

     Scanner in = new Scanner(connection.getInputStream());

     // print first ten lines of contents
     myLOG( "----- first ten lines of contents -----");

     for (int n = 1; in.hasNextLine() && n <= 10; n++)
        myLOG( in.nextLine());
     if (in.hasNextLine()) System.out.println(". . .");
  }
  catch (IOException e)
  {
      myLOG( "EXCEPTION:");
      myLOG( e.toString());
     e.printStackTrace();
  }
}


Inside my extended class, I do 2 tests.

This one works fine:
URLConnectionTest("http://www.google.com");


This one returns the error "HTTP/1.1 502 Proxy Error (Host not found)":
URLConnectionTest("http://myothermachine.mydomain");


In the CONTEXT FILE, we got this config:
<!-- Proxy -->
<proxyhost oa_var="s_proxyhost">our_proxy_IP</proxyhost>
<proxyport oa_var="s_proxyport">our_proxy_PORT</proxyport>
<proxybypassdomain oa_var="s_proxybypassdomain">our_DOMAIN</proxybypassdomain>


And it's OK, and it makes the previous test over google.com be working.

How I must configure our Context File to disallow proxy access for our domain machines?

I saw I can configure Apache, via httpd.conf, using NoProxy directive... but I couldn't make it work.

<IfModule mod_proxy.c>
    NoProxy .our_domain
</IfModule>

Any idea?

Thanks a lot!

[EDITED by LF: removed superfluous empty lines]

[Updated on: Thu, 17 May 2012 14:59] by Moderator

Report message to a moderator

Re: Configuring proxy - AutoConfig context file and Apache [message #568267 is a reply to message #554767] Wed, 10 October 2012 07:40 Go to previous message
urdu
Messages: 1
Registered: October 2012
Location: Romania
Junior Member
Hy, I used proxy from sslprivateproxy.com/ . I made seo and i`m very happy with their services . They offered me this coupon`s to share to others: For proxy - SPP10FREE - 10% discount and VPN - SPP10VPN - 10 % discount if you will use this serials. Feel free to use them. Have fun!
Previous Topic: Oracle CRM E Business Suite Resource
Next Topic: Differences between the release 11i and R12.
Goto Forum:
  


Current Time: Fri Apr 19 10:03:20 CDT 2024