Using Web Server Plug-Ins with WebLogic Server
When you use WebLogic Server as your primary Web server, you may also want to configure WebLogic Server to pass on, or proxy, certain requests to a secondary Web server, such as Netscape Enterprise Server, Apache, or Microsoft Internet Information Server. Any request that gets proxied is redirected to a specific URL.You can even proxy to another Web server on a different machine.You proxy requests based on the URL of the incoming request.
HttpProxyServlet (provided as part of the distribution) takes an HTTP request, redirects it to the proxy URL, and sends the response to the client's browser back through WebLogic Server. To use the
HttpProxyServlet, you must configure it in a Web Application and deploy that Web Application on the WebLogic Server that is redirecting requests.
proxyservlet in your Web Application deployment descriptor (see Sample web.xml for Use with ProxyServlet)
.The Web Application must be the default Web Application of the server instance that is responding to requests. The class name for the proxy servlet is
weblogic.servlet.proxy.HttpProxyServlet.For more information, see Developing Web Applications, Servlets, and JSPs for WebLogic Server.
<param-value>containing the URL of the server to which proxied requests should be directed.
<url-pattern>. Specifically, map the file extensions you wish to proxy, for example
*.jsp, or *
.html. Use the
<servlet-mapping>element in the
web.xmlWeb Application deployment descriptor.