BEA WebLogic Server 7 Servisní příručka Strana 162

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 545
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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>
Zobrazit stránku 161
1 2 ... 157 158 159 160 161 162 163 164 165 166 167 ... 544 545

Komentáře k této Příručce

Žádné komentáře