Technical data

Setting Up a Proxy to a Secondary HTTP Server
Administration Guide 9-3
If you are using the new version of HttpProxyServlet, see “Sample web.xml
for use with NEW version of HttpProxyServlet” on page 9-4)
.
If you are using the older, deprecated version of
HttpProxyServlet, see
“Sample web.xml for use with DEPRECATED version of HttpProxyServlet” on
page 9-5)
.
The class name for the new version of
HttpProxyServlet is
weblogic.servlet.proxy.HttpProxyServlet.
The class name for the older, deprecated version of
HttpProxyServlet is
weblogic.t3.srvr.HttpProxyServlet.)
For more information on deployment descriptors and Web Applications, see
Assembling and Configuring Web Applications at
http://e-docs.bea.com/wls/docs61/webapp/index.html.
2. Define the appropriate initialization parameters for the HttpProxyServlet. You
define initialization parameters with the
<init-param> element in the
web.xml Web Application deployment descriptor.
If you are using the new version of
HttpProxyServlet, define the
WebLogicHost and WebLogicPort parameters (these two parameters are
required) using
<init-param> elements in the web.xml Web Application
deployment descriptor. Set
WebLogicHost to the host name of the secondary
HTTP server and set
WebLogicPort to the port number on the secondary HTTP
server that is listening for HTTP requests. You can also, where appropriate,
define additional parameters as described in “Parameters for Web Server
Plug-ins” on page D-1. For a sample deployment descriptor, see “Sample
web.xml for use with NEW version of HttpProxyServlet” on page 9-4.
If you are using the older, deprecated version of
HttpProxyServlet, define
the
redirectURL parameter using the <init-param> element in the web.xml
Web Application deployment descriptor. Set the value of this parameter to the
URL of the secondary HTTP, including the port number. For example,
http://myHttpServer:7001. For a sample deployment descriptor, see
“Sample web.xml for use with DEPRECATED version of HttpProxyServlet” on
page 9-5.
3. Map the
ProxyServlet to a <url-pattern>. Specifically, map the file
extensions you wish to proxy, for example
*.jsp, or *.html. Use the
<servlet-mapping> element in the web.xml Web Application deployment
descriptor.