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  |
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
|
|
|
|
Goto Forum:
Current Time: Thu Apr 17 06:01:12 CDT 2025
|