Hi all
This is a problem Im facing with Apache + Mod_SSL (for HTTPS).
Consider this scenario :
|-|
|-|
+---------+ |-| +---------+
| A | T | |-| | A | |
| p | o | |-| | p | C |
HTTPS | a | m | |-| HTTP | a | G |
------->| c | c |--|-|------>| c | I |
| h | a | |-| | h | |
| e | t | |-| | e | |
+---------+ |-| +---------+
|-|
S1 |-| S2
|-|
Firewall
When the servlet on S1 tries the following :
URL url = new URL("http://S2/cgi-bin/mycgi.exe");
URLConnection conn = url.openConnection();
InputStream in = conn.getInputStream(); <==== FAILS HERE
The exception is :
------------------------------------------------------------------------
java.net.ConnectException: Connection refused: no further information
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:312)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:125)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:112)
at java.net.Socket.<init>(Socket.java:273)
at java.net.Socket.<init>(Socket.java:100)
at sun.net.NetworkClient.doConnect(NetworkClient.java:50)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:331)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:517)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:277)
at sun.net.www.http.HttpClient.New(HttpClient.java:289)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection
.java:379)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
nection.java:472)
------------------------------------------------------------------------
This used to work before introducing SSL module on Apache running on S1
(i.e. when it was HTTP everywhere).
Any idea of whats going wrong? Thanks.
--
shiv
[EMAIL PROTECTED]
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com