HttpProxyServlet

From Resin 3.0

(Difference between revisions)
Jump to: navigation, search
 
(renamed tag to directive)
 
(2 intermediate revisions by one user not shown)
Line 1: Line 1:
[[Category:Servlets]]
+
[[Category:Servlet Library]]
 +
 
 +
The HttpProxyServlet forwards requests to a backend web server.  You can use the HttpProxyServlet to integrate with .asp or Ruby pages.
  
 
== Configuration ==
 
== Configuration ==
Line 13: Line 15:
 
   </servlet>
 
   </servlet>
  
You can have multiple <host> tags to load balance to multiple backend servers.
+
You can have multiple <host> directives to load balance to multiple backend servers.

Latest revision as of 20:21, 21 February 2006


The HttpProxyServlet forwards requests to a backend web server. You can use the HttpProxyServlet to integrate with .asp or Ruby pages.

Configuration

resin-web.xml

<web-app xmlns="http://caucho.com/ns/resin">
  <servlet>
    <servlet-name>http-proxy</servlet-name>
    <servlet-class>com.caucho.servlets.HttpProxyServlet</servlet-class>
    <init>
      <host>localhost:6666</host>
    </init>
  </servlet>

You can have multiple <host> directives to load balance to multiple backend servers.

Personal tools