aspose file tools*
The moose likes Other Java Products and Servers and the fly likes HttpProxy working but wrong outbound IP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "HttpProxy working but wrong outbound IP" Watch "HttpProxy working but wrong outbound IP" New topic
Author

HttpProxy working but wrong outbound IP

Dowell Griffin
Greenhorn

Joined: Dec 06, 2004
Posts: 8
I am using the HttpProxy servlet that comes with Resin. It is working except for one unexpected issue. It is running on a multihomed system. It is listening on the proper IP ort but when it forwards the requests it is using the default IP of the system instead of the IP it is confingured to listen on.

The documentation is nearly non-existent on this class. I have the values shown below my configuration. Maybe there is an additional parameter that will address the issue but I cannot find it. It is listening on 64.111.222.111 but when it forwards to the target that host sees the request coming from the default IP of the system and not 64.111.222.111 as one would expect.

<http server-id="" host="64.111.222.111" port="8090" virtual-host="locator" />

<host id='locator'>
<document-directory>locator</document-directory>

<servlet>
<servlet-name>http-proxy</servlet-name>
<servlet-class>com.caucho.servlets.HttpProxyServlet</servlet-class>
<init host='www.forwardto.com'/>
<load-on-startup>0</load-on-startup>
</servlet>
<servlet-mapping servlet-name="http-proxy" url-pattern="/*" />
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HttpProxy working but wrong outbound IP
 
Similar Threads
tomcat.startup..inquiry
Problem with Resin Load Balancing
JNDI Port number issue while strating JBoss server 4.2.2.GA
problem while loading the welcome page
Oracle 9i AS and struts!! Urgent