BEA WebLogic Server 7 Manual de servicio Pagina 162

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 545
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 161
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>
Vista de pagina 161
1 2 ... 157 158 159 160 161 162 163 164 165 166 167 ... 544 545

Comentarios a estos manuales

Sin comentarios