Technical data

9 Proxying Requests to Another HTTP Server
9-4 Administration Guide
If you set the <url-pattern> to “/”, then any request that cannot be resolved
by WebLogic Server is proxied to the remote server. However, you must also
specifically map the following extensions:
*.jsp, *.html, and *.html if you
want to proxy files ending with those extensions.
4. Deploy the Web Application on the WebLogic Server that redirects incoming
requests.
Sample Deployment Descriptor for the
Proxy Servlet
The following are samples of Web Application deployment descriptors for use with the
HttpProxyServlet.
Listing 9-1 Sample web.xml for use with NEW version of HttpProxyServlet
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.
//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<servlet>
<servlet-name>ProxyServlet</servlet-name>
<servlet-class>weblogic.servlet.proxy.HttpProxyServlet</servlet
-class>
<init-param>
<param-name>WebLogicHost</param-name>
<param-value>serverName</param-value>
</init-param>
<init-param>
<param-name>WebLogicPort</param-name>
<param-value>serverPort</param-value>
</init-param> </servlet>
<servlet-mapping>
<servlet-name>ProxyServlet</servlet-name>