BEA WebLogic Server 7 Manuel de service Page 162

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 545
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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>
Vue de la page 161
1 2 ... 157 158 159 160 161 162 163 164 165 166 167 ... 544 545

Commentaires sur ces manuels

Pas de commentaire